Function
Fast
Pawn:Follow
AI: Makes this Character to follow another actor<br/><br/>Triggers event <a href='pawn#event-movecomplete'>MoveComplete</a>
Syntax
my_pawn:Follow(actor, acceptance_radius = 50, stop_on_succeed = false, stop_on_fail = false, update_rate = 0.25)
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
actor
|
Actor | — | Actor to follow |
acceptance_radius
optional
|
float | 50 |
Radius to consider success |
stop_on_succeed
optional
|
boolean | false |
Whether to stop when reaching the target |
stop_on_fail
optional
|
boolean | false |
Whether to stop when failed to reach the target |
update_rate
optional
|
float | 0.25 |
How often to recalculate the AI path |