Easier version of WalkerDiff
Syntax: WalkerStepTo(wa,wb)
WalkerStepTo(wa,wb)
wa walker that will be moved towards wb
wa
wb
wb target walker or spot index for direction
Returns: Function returns the same step that walker wa performed inside the function.
Notes: If wa is on the opposite side of wb, than STEP_NOTHING is performed and returned.
STEP_NOTHING
Example: WalkerStepTo(player,GetCursor()), moves player towards the cursor
WalkerStepTo(player,GetCursor())
See also: WalkerDiff
Last updated 6 years ago