Difference between revisions of "GetDistance"
Jump to navigation
Jump to search
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'' | ||
'''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 | |||