Format
step_away(Ref,Trg,Max=5,Speed=0)
Returns
1 on success; 0 otherwise.
Args
Ref
: A mob or obj.Trg
: An object on the map.Max
: The maximum distance between Ref and Targ before movement halts.Speed
: Speed to move, in pixels. 0 uses Ref.step_size.
Move Ref on a path away from location Trg, taking obstacles into account. If Ref is farther than Max steps from Trg, no action will be taken.