GetDistance

Revision as of 09:46, 24 May 2006 by imported>JOG

Returns the distance the calling object has to the Reference "ObjectID".

Syntax:

GetDistance ObjectID

Examples:

GetDistance TestMarkerRef
Set distance to Getdistance Player
Ref Actor
Float Distance 
Begin OnActivate 
  set Actor to GetActionRef 
  set distance to 
  if Getdistance Actor > 70
    messagebox "Come closer my friend"
  endif
end