MoveAwayFrom
From GECK
A function added by the JIP NVSE Plugin.
Contents
Description
Forces the calling actor to move away from the specified reference (1st argument), to a valid position within the specified distance (2nd argument) in game units.
The 3rd argument flags is optional and may be used to toggle movement settings:
1 Always Run 2 Always Sneak 3 Always Run AND Sneak
Syntax
reference.MoveAwayFrom target:ref maxDistance:float flags:int
Example
actorRef.MoveAwayFrom rTargetRef 500
actorRef.MoveAwayFrom rTargetRef 500 1