← Previous | Next →
lookEntity
Description
Makes the NPC turn to face a specified entity.
| Name |
Type |
Possibilities |
| lookEntity |
behaviour |
2 |
Parameters
| # |
Name |
Type |
Mandatory |
Description |
Multiple |
| 1 |
entity |
Entity |
Yes |
The entity that the NPC should turn to face. |
No |
Outputs
| # |
Description |
| 1 |
The NPC is already facing the specified entity. |
| 2 |
The NPC turns to face the specified entity. |
Example
NPC
name Observer
model s_m_m_security_01
position -1020.72 4839.78 258.30 0.0
interaction
nothing
behaviour
getClosestPlayer player
lookEntity $player