SetNPCFollowVehicle: Difference between revisions
From Onset Developer Wiki
Created page with "{{Info|Function|Server|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|SetNPCFollowVehicle(npc, vehicle [, speed])}} {{FuncParameters}} {{FuncParam|npc|__EDIT_ME__}} {{F..." |
No edit summary |
||
Line 1: | Line 1: | ||
{{Info|Function|Server|1.0}} | {{Info|Function|Server|1.0}} | ||
{{FuncDescription| | {{FuncDescription|Make a NPC follow the vehicle.}} | ||
{{FuncSyntax|SetNPCFollowVehicle(npc, vehicle [, speed])}} | {{FuncSyntax|SetNPCFollowVehicle(npc, vehicle [, speed])}} | ||
{{FuncParameters}} | {{FuncParameters}} | ||
{{FuncParam|npc| | {{FuncParam|npc|The NPC identifier.}} | ||
{{FuncParam|vehicle | | {{FuncParam|vehicle |The vehicle identifier.}} | ||
{{FuncParamOptional|speed| | {{FuncParamOptional|speed|The speed in floating point.}} | ||
{{FuncReturnValue|__EDIT_ME__}} | {{FuncReturnValue|__EDIT_ME__}} | ||
== Example == | == Example == | ||
<syntaxhighlight lang="Lua> | |||
__EDIT_ME__ | __EDIT_ME__ | ||
</syntaxhighlight> | |||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
{{Template:NPCFunctions}} |
Revision as of 10:57, 21 November 2019
Description
Make a NPC follow the vehicle.
Syntax
SetNPCFollowVehicle(npc, vehicle [, speed])
Parameters
- npc
The NPC identifier. - vehicle
The vehicle identifier. - speed (optional)
The speed in floating point.
Return Value
- __EDIT_ME__
Example
__EDIT_ME__
See also
- GetStreamedNPC
- GetNPCLocation
- SetNPCOutline
- SetNPCPropertyValue
- GetNPCPropertyValue
- CreateNPC
- DestroyNPC
- IsValidNPC
- GetAllNPC
- GetNPCCount
- IsNPCStreamedIn
- SetNPCLocation
- GetNPCLocation
- SetNPCHealth
- GetNPCHealth
- SetNPCAnimation
- SetNPCHeading
- GetNPCHeading
- SetNPCTargetLocation
- SetNPCFollowPlayer
- SetNPCFollowVehicle
- SetNPCRagdoll
- SetNPCRespawnTime