Script:setpath: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{ScriptCommandPage | {{ScriptCommandPage | ||
|description=start or stop following a | |description=start or stop following a path | ||
|context=any | |context=any | ||
|special=none | |special= | ||
none | |||
|flags= | |flags= | ||
w Turn NPCs to face the path direction - ignored for other entities | w Turn NPCs to face the path direction - ignored for other entities | ||
Line 9: | Line 9: | ||
|parameters= | |parameters= | ||
path string Name of the path to follow | path string Name of the path to follow | ||
|intro=Paths are named sequences of timed positions with linear or smooth interpolation defined in a [[DLF_file_format|level]]. Movement along the path can be paused or reversed with the {{Command|usepath}} command. | |||
}} | }} | ||
Latest revision as of 11:00, 17 June 2022
The setpath
script command is used to start or stop following a path for an entity. Paths are named sequences of timed positions with linear or smooth interpolation defined in a level. Movement along the path can be paused or reversed with the usepath
command.
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 |