get_dist_closest_player_to_object(object[, player_list])

Parameters:
object (string) name of the object
player_list (table of strings, optional) list of players to test against, or nil to test against all players (defaults to nil)
 
Returns:
(float) distance from the object to the closest player
(string) name of closest player

Description:
Get the distance from an object to the closest player, and also returns the closest player.
 

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