Editing Main Page
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 7: | Line 7: | ||
Each NPC run in its own process. The NPC scripts have functions as well as callbacks. | Each NPC run in its own process. The NPC scripts have functions as well as callbacks. | ||
Since v1.5, adding an npc is simple as a call to [[ConnectNPC]] and if you do not want to give npc | Since v1.5, adding an npc is simple as a call to [[ConnectNPC]] and if you do not want to give npc AI, the script parameter can be omitted. | ||
{| style=height:1em | {| style=height:1em | ||
|scope="col" style="width: 300px; text-align:left; vertical-align: top;"| | |scope="col" style="width: 300px; text-align:left; vertical-align: top;"| | ||
Line 40: | Line 40: | ||
* [[OnNPCClassSelect]] | * [[OnNPCClassSelect]] | ||
* [[OnServerShareTick]] | * [[OnServerShareTick]] | ||
==Constants== | ==Constants== | ||
* [[Bodypart| BodyParts]] | * [[Bodypart| BodyParts]] | ||
Line 46: | Line 45: | ||
* [[Keys|Game Keys]] | * [[Keys|Game Keys]] | ||
* [[Player_States|Player States]] | * [[Player_States|Player States]] | ||
== Classes == | == Classes == | ||
*[[Vector]] | *[[Vector]] | ||
Line 65: | Line 63: | ||
* [[GetPlayerTeam]] | * [[GetPlayerTeam]] | ||
* [[GetPlayerSlotWeapon]] | * [[GetPlayerSlotWeapon]] | ||
* [[GetPlayerSlotAmmo]] | * [[GetPlayerSlotAmmo]] | ||
* [[WhereIsPlayer]] | * [[WhereIsPlayer]] | ||
== Modules == | == Modules == | ||
Line 73: | Line 69: | ||
* [[LibAction]] | * [[LibAction]] | ||
* [[npcmodule]] (to be renamed) | * [[npcmodule]] (to be renamed) | ||
* [[z-finder]] | * [[z-finder]] | ||
== | == Bug List == | ||
* [[ | * [[Bug_List_One|List One]] | ||
|| | || | ||
* [[StartRecordingPlayback]] | * [[StartRecordingPlayback]] | ||
Line 114: | Line 94: | ||
* [[GetMyName]] | * [[GetMyName]] | ||
* [[GetMyID]] | * [[GetMyID]] | ||
* [[QuitServer | * [[QuitServer]] | ||
==Advanced functions(v1.5+)== | |||
==Advanced functions== | |||
* [[SendOnFootSyncData]] | * [[SendOnFootSyncData]] | ||
* [[SendOnFootSyncDataEx]] | * [[SendOnFootSyncDataEx]] | ||
Line 132: | Line 105: | ||
* [[FireSniperRifle]] | * [[FireSniperRifle]] | ||
* [[FireSniperRifleEx]] | * [[FireSniperRifleEx]] | ||
* [[ | * [[EnterVehicle]] | ||
* [[SendShotInfo]] | * [[SendShotInfo]] | ||
* [[SendDeathInfo]] | * [[SendDeathInfo]] | ||
* [[GetLocalValue]] | * [[GetLocalValue]] | ||
* [[SetLocalValue]] | * [[SetLocalValue]] | ||
* [[GetSlotFromWeaponId]] | |||
* [[FaceNPCToPlayer]] | |||
* [[GetTickCount]] | |||
* [[GetClosestPlayer]] | |||
== Functions used only in server scripts== | == Functions used only in server scripts== | ||
* [[ConnectNPC]] | * [[ConnectNPC]] | ||
Line 147: | Line 124: | ||
* [[F]] | * [[F]] | ||
* [[Examples]] (Remote calls) | * [[Examples]] (Remote calls) | ||
==Tools== | ==Tools== | ||
* [[recupdate]] | * [[recupdate]] | ||
Line 169: | Line 137: | ||
*[[WriteFloat]] | *[[WriteFloat]] | ||
*[[WriteString]] | *[[WriteString]] | ||
== | ==More== | ||
*[[FireProjectile]] | |||
*[[RequestClass]] | |||
*[[RequestSpawn]] | |||
*[[ClaimPickup]] | *[[ClaimPickup]] | ||
*[[IsPickupStreamedIn]] | *[[IsPickupStreamedIn]] | ||
Line 180: | Line 151: | ||
*[[OnPickupDestroyed]] | *[[OnPickupDestroyed]] | ||
*[[OnPickupUpdate]] | *[[OnPickupUpdate]] | ||
*[[OnCheckpointStreamIn]] | *[[OnCheckpointStreamIn]] | ||
*[[OnCheckpointDestroyed]] | *[[OnCheckpointDestroyed]] | ||
Line 191: | Line 161: | ||
*[[ClaimEnterCheckpoint]] | *[[ClaimEnterCheckpoint]] | ||
*[[ClaimExitCheckpoint]] | *[[ClaimExitCheckpoint]] | ||
*[[ | *[[OnTimeWeatherSync]] | ||
*[[GetVehicleDriver]] | *[[GetVehicleDriver]] | ||
*[[GetVehicleModel]] | *[[GetVehicleModel]] | ||
Line 202: | Line 170: | ||
*[[GetVehicleHealth]] | *[[GetVehicleHealth]] | ||
*[[GetVehicleDamage]] | *[[GetVehicleDamage]] | ||
*[[ | *[[GetPlayerSpeed]] | ||
*[[IsObjectStreamedIn]] | *[[IsObjectStreamedIn]] | ||
*[[GetObjectModel]] | *[[GetObjectModel]] | ||
Line 218: | Line 181: | ||
*[[ClaimObjectShot]] | *[[ClaimObjectShot]] | ||
*[[GetObjectCount]] | *[[GetObjectCount]] | ||
*[[GetCheckpointCount]] | |||
*[[ExitVehicle]] | |||
*[[ExitVehicleEx]] | |||
*[[GetPlayerAction]] | |||
== More == | == More == | ||
*[[NPC Installation]] | *[[NPC Installation]] | ||
* [[Squirrel Standard Library Functions]] | * [[Squirrel Standard Library Functions]] | ||
* [[Special:WikiForum| Forum]] | |||
* [[NPCHide]] | * [[NPCHide]] | ||
* [[Command-line usage]] | * [[Command-line usage]] | ||
Line 230: | Line 198: | ||
'''04 February 2023: Hiding/Changing name of NPC In-Game New Plugin. [[NPCHide|see]] | '''04 February 2023: Hiding/Changing name of NPC In-Game New Plugin. [[NPCHide|see]] | ||
</poem> | </poem> | ||
<Poem style="border: 2px solid #d6d2c5; background-color: # | <Poem style="border: 2px solid #d6d2c5; background-color: #ffff00; "> | ||
''' | '''28 August 2023: NPC v1.7 Beta 2 is released'''. (new) [[V1_7_beta2_release_notes|'''click here''']] | ||
</poem> | |||
<Poem style="border: 2px solid #d6d2c5; background-color: #00ff00; "> | |||
'''08 October 2023: NPC v1.7 Beta 3 is released'''. (new) [[V1_7_beta3_release_notes|'''click here''']] | |||
</poem> | </poem> |