← Previous | Next →
goToCoords
Description
Makes the NPC move towards the specified coordinates.
Name | Type | Possibilities |
goToCoords | behaviour | 2 |
Parameters
# | Name | Type | Mandatory | Description | Multiple |
1 | x | number | Yes | The X coordinate to move to. | No |
2 | y | number | Yes | The Y coordinate to move to. | No |
3 | z | number | Yes | The Z coordinate to move to. | No |
4 | distance | number | No | The stopping distance from the coordinates. If specified and the NPC is within this distance, the action will not move the NPC. | No |
Outputs
# | Description |
1 | The NPC is already within the specified distance from the coordinates. |
2 | The NPC is moving towards the specified coordinates. |
Example
NPC
name Walker
model s_m_m_security_01
position -1020.72 4839.78 258.30 0.0
interaction
nothing
behaviour
goToCoords 150.0 200.0 300.0 10.0