Difference between revisions of "GetDistance"
Jump to navigation
Jump to search
imported>JOG m |
imported>JOG m |
||
Line 10: | Line 10: | ||
Ref Actor | Ref Actor | ||
Begin OnActivate | Begin OnActivate | ||
set Actor to GetActionRef | set Actor to GetActionRef | ||
if Getdistance Actor > 70 | if Getdistance Actor > 70 | ||
messagebox "Come closer my friend" | messagebox "Come closer my friend" |
Revision as of 10:14, 24 May 2006
Returns the distance the calling object has 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