setpath
Jump to navigation
Jump to search
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.