GetDistance
Revision as of 11:07, 21 November 2011 by imported>SJML Bot (Bot creating condition functions pages.)
Returns the distance in units from the calling object to the Reference "ObjectID".
Syntax:
GetDistance ObjectID
Examples:
GetDistance TestMarkerRef
Set distance to GetDistance Player
Ref Actor Begin OnActivate set Actor to GetActionRef if Getdistance Actor > 70 messagebox "Come closer my friend" endif end