Difference between revisions of "GetDistance"
no edit summary
imported>Wkilleen |
imported>Hammil |
||
(5 intermediate revisions by 3 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]] | ||
[[Category:Functions (GECK 1.1)]] | |||
[[Category:Movement Functions]] | [[Category:Movement Functions]] | ||
[[Category:Movement Functions (GECK 1.1)]] | |||
[[Category:Condition Functions]] | [[Category:Condition Functions]] | ||
[[Category:Condition Functions (GECK 1.1)]] |