GetDistance
From GECK
Link to TES4 Construction Set Wiki: GetDistance.
A function included in the GECK for Fallout 3.
Contents
Description
Used to find the distance between two references.
Syntax
(Distance:float) [Actor, Activator].GetDistance Target:ref
Example
Player.GetDistance Molerat01Ref
Returns the distance between the player and the Molerat
Notes
- If a null reference - or a reference to an object not in the current cell - is passed, the script crashes
- Return value is measured in game Units.