← Previous | Next →
fleeCoords
Description
Makes the NPC flee from specified coordinates if they are within a certain distance.
| Name | Type | Possibilities |
| fleeCoords | behaviour | 2 |
Parameters
| # | Name | Type | Mandatory | Description | Multiple |
| 1 | x | number | Yes | The X coordinate from which the NPC will flee. | No |
| 2 | y | number | Yes | The Y coordinate from which the NPC will flee. | No |
| 3 | z | number | Yes | The Z coordinate from which the NPC will flee. | No |
| 4 | distance | number | No | The distance within which the NPC will start fleeing. Defaults to 200.0 if not specified. | No |
Outputs
| # | Description |
| 1 | The NPC is already within the specified distance from the coordinates and is fleeing. |
| 2 | The NPC starts fleeing from the specified coordinates. |
Example
NPC
name Runner
model a_m_y_runner_01
position -1020.72 4839.78 258.30 0.0
interaction
nothing
behaviour
fleeCoords 150.0 200.0 10.0 150.0