Script:setpath: Difference between revisions

From Arx Libertatis Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 3: Line 3:
|description=start or stop following a [[path]]
|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

Revision as of 17:10, 15 April 2020

This article is a stub - you can help by expanding it. See the Wiki FAQ.

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:

ParameterTypeDescription
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.