Script:setpath: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
Line 2: | Line 2: | ||
{{ScriptCommandPage | {{ScriptCommandPage | ||
|description=start or stop following a [[path]] | |description=start or stop following a [[path]] | ||
|context=any | |||
|special=none | |special=none | ||
|flags= | |flags= |
Revision as of 16:51, 15 April 2020
The setpath
script command is used to start or stop following a path for an entity.
Usage
setpath [-wf] <path>
setpath none
Context: Any Entity
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.