Difference between revisions of "GetDistance"
no edit summary
imported>Geckbot m (Robot: Automated text replacement (-\[\[Category:(.*?)\(GECK 1.0\)\]\] +Category:\1(GECK 1.1))) |
imported>Hammil |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{Function | ||
|CSWikiPage = GetDistance | |||
|origin = GECK1 | |||
|summary = Used to find the distance between two references. | |||
|name = GetDistance | |||
|returnVal = Distance | |||
|returnType = float | |||
|referenceType = [Actor, Activator] | |||
|arguments = | |||
{{FunctionArgument | |||
|Name = Target | |||
|Type = ref | |||
}} | |||
|example = <pre>Player.GetDistance Molerat01Ref</pre> | |||
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]] |