Script:setpath: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{Stub}} | {{Stub}} | ||
{{ScriptCommandPage | |||
|description=start or stop following a [[path]] | |||
|special=none | |||
|flags= | |||
w Turn NPCs to face the path direction - ignored for other entities | |||
f Ignored | |||
|parameters= | |||
path string Name of the path to follow | |||
}} | |||
The direction to move along the path can be changed using the {{Command|usepath}} script command. However calling the {{Command|setpath}} command resets the direction to forwards as if {{Command|usepath|f}} was called right after it. | |||
The direction to move along the path can be changed using the | |||
Revision as of 16:13, 15 April 2020
The setpath
script command is used to start or stop following a path.
Usage
setpath [-wf] <path>
setpath none
Context: Ignored
Flags:
-w
: Turn NPCs to face the path direction - ignored for other entities
-f
: Ignored
Parameters:
Parameter | Type | Description |
---|---|---|
path |
string |
Name of the path to follow |
The direction to move along the path can be changed using the usepath
script command. However calling the setpath
command resets the direction to forwards as if usepath f
was called right after it.