MoveAwayFrom

From GECK
Jump to: navigation, search


A function added by the JIP NVSE Plugin.

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

[help]
reference.MoveAwayFrom target:ref maxDistance:float flags:int

Example

actorRef.MoveAwayFrom rTargetRef 500
actorRef.MoveAwayFrom rTargetRef 500 1 

See Also