← Previous | Next →
beRescued
Description
Allows an NPC to be rescued by a player. The NPC will follow the player to a specified rescue position.
Name | Type | Possibilities |
beRescued | behaviour | 3 |
Parameters
# | Name | Type | Mandatory | Description | Multiple |
1 | x | number | Yes | The X coordinate of the rescue position. | No |
2 | y | number | Yes | The Y coordinate of the rescue position. | No |
3 | z | number | Yes | The Z coordinate of the rescue position. | No |
Outputs
# | Description |
1 | 1 if the NPC is already at the rescue position. |
2 | 2 if the NPC is following the player. |
3 | 3 if the NPC is waiting where they are. |
Example
NPC
name Hostage
model a_m_m_farmer_01
position -1020.72 4839.78 258.30 0.0
interaction
nothing
behaviour
beRescued 100.0 200.0 300.0