get_dist(obj1, obj2, favor_lateral, xz_only)

Parameters:
obj1 (string) name of the first object (can be any type of scripted object)
obj2 (string) name of the second object (can be any type of scripted object)
favor_lateral (bool, default false) set to true to make distance on Y exaggerated
xz_only (bool, default false) if true, y-axis distance is ignored.
 
Returns:
(float) distance between the two objects, in meters; or a really big number if one or both objects cannot be found

Description:
Get the distance between two objects.
 

back to indexSR3 Script Action Documentation
Last updated: Tue, 09 Aug 2011 11:32:15