SetNPCFollowPlayer: Difference between revisions

From Onset Developer Wiki
(Created page with "{{Info|Function|Server|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|SetNPCFollowPlayer(npc, player [, speed])}} {{FuncParameters}} {{FuncParam|npc|__EDIT_ME__}} {{Fun...")
 
No edit summary
Line 1: Line 1:
{{Info|Function|Server|1.0}}
{{Info|Function|Server|1.0}}


{{FuncDescription|__EDIT_ME__}}
{{FuncDescription|Set a NPC to follow the specified player.}}


{{FuncSyntax|SetNPCFollowPlayer(npc, player [, speed])}}
{{FuncSyntax|SetNPCFollowPlayer(npc, player [, speed])}}


{{FuncParameters}}
{{FuncParameters}}
{{FuncParam|npc|__EDIT_ME__}}
{{FuncParam|npc|The NPC identifier.}}
{{FuncParam|player |__EDIT_ME__}}
{{FuncParam|player |The player identifier.}}
{{FuncParamOptional|speed|__EDIT_ME__}}
{{FuncParamOptional|speed|The speed.}}


{{FuncReturnValue|__EDIT_ME__}}
{{FuncReturnValue|This function returns nothing.}}


== Example ==
== Example ==
Line 16: Line 16:


{{RelatedFunctions}}
{{RelatedFunctions}}
__EDIT_ME__
{{Template:NPCFunctions}}

Revision as of 15:16, 19 November 2019

SetNPCFollowPlayer

Type: Function
Context: Server
Introduced: v1.0

Description

Set a NPC to follow the specified player.

Syntax

SetNPCFollowPlayer(npc, player [, speed])

Parameters

  • npc
    The NPC identifier.
  • player
    The player identifier.
  • speed (optional)
    The speed.

Return Value

  • This function returns nothing.

Example

__EDIT_ME__

See also