GetDistance

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
< [[::Category:Functions|Category:Functions]]

Link to TES4 Construction Set Wiki: GetDistance.

A function included in the GECK version 1.1.0.36.

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