get_closest_npc_to_object(obj_name, radius) |
|
Parameters: |
obj_name | | (string) name of a object (can be any type of scripted object) |
radius | | (float) Max search radius from the object |
|
Returns: |
(float) Distance to the closest Script NPC or FLT_MAX if nothing is in range |
|
Description: |
Gets the closest Script NPC to an object within a specific radius (string) Name of the closest Script NPC to an object or "" if nothing is in range. |
|
|
back to index | SR3 Script Action Documentation Last updated: Tue, 09 Aug 2011 11:32:16 |