GetDistance

From GECK
Jump to: navigation, search

Link to TES4 Construction Set Wiki: GetDistance.

A function included in the GECK for Fallout 3.

Description

Used to find the distance between two references.

Syntax

[help]
(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

See Also