Script:setpath: Difference between revisions

From Arx Libertatis Wiki
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
}}


This page describes the <code>setpath</code> script command.
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.
 
Usage:
 
setpath none
setpath [-wf] <path>
 
Flags:
* <code>-w</code>: Use special handling for the worm
* <code>-f</code>: Follow the path direction
 
Parameters:
{| class="wikitable sortable"
! Parameter
! Type
! Description
|-
| <code><path></code>
| {{text}}
| Name of the path to follow
|}
 
The direction to move along the path can be changed using the [[Script:usepath|usepath]] script command. However calling the <code>setpath</code> command resets the direction to forwards as if <code>usepath f</code> was called right after it.
 
[[Category:Script commands]]

Revision as of 16:13, 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.

Usage

setpath [-wf] <path>
setpath none

Context: Ignored

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.