← Previous | Next →
flee
Description
Makes the NPC flee from a specified pedestrian if they are within a certain distance.
| Name |
Type |
Possibilities |
| flee |
behaviour |
2 |
Parameters
| # |
Name |
Type |
Mandatory |
Description |
Multiple |
| 1 |
ped |
Ped |
Yes |
The pedestrian from whom the NPC will flee. |
No |
| 2 |
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 pedestrian and is fleeing. |
| 2 |
The NPC starts fleeing from the pedestrian. |
Example
NPC
name Coward
model a_m_y_hipster_02
position -1020.72 4839.78 258.30 0.0
interaction
nothing
behaviour
flee player 150.0