GetDistance

From GECK

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

(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

Personal tools