NavigateTo
Sends an agent walking to a point.
NavigateTo ( entity,x#,y#,z# )
Parameters
- entity
- the agent.
- x#
- where to go, across.
- y#
- the height there.
- z#
- the depth there.
Description
Sends an agent walking to a point. It finds the way straight away and sets off at the next UpdateWorld. If the point can't be reached, it walks as close as it can get. To chase something that moves, call NavigateTo with its position again every so often, such as every half second.
Example
NavigateTo guard, EntityX(player), EntityY(player), EntityZ(player)