Difference between revisions of "GetDistance"
Jump to navigation
Jump to search
imported>Hammil |
imported>Hammil |
||
Line 14: | Line 14: | ||
|example = <pre>Player.GetDistance Molerat01Ref</pre> | |example = <pre>Player.GetDistance Molerat01Ref</pre> | ||
Returns the distance between the player and the Molerat | 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 | |||
[[Category:Functions]] | [[Category:Functions]] | ||
[[Category:Functions (GECK 1.1)]] | [[Category:Functions (GECK 1.1)]] |
Latest revision as of 19:34, 9 November 2012
< [[::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
(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