Difference between revisions of "GetDistance"

Jump to navigation Jump to search
238 bytes added ,  09:45, 24 May 2006
Returns distance to a Reference (plus more examples)
 
imported>JOG
(Returns distance to a Reference (plus more examples))
Line 1: Line 1:
Returns the distance the object has to the Reference "ObjectID".
'''Syntax:'''
'''Syntax:'''
  GetDistance ''ObjectID''
  GetDistance ''ObjectID''
'''Example:'''
GetDistance testMarker


'''Examples:'''
GetDistance TestMarkerRef


Returns the distance the object has to ObjectID.
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 
   
   


Anonymous user

Navigation menu