marker_add_closest_to_target(target_name, group, object_indicator_id[, object_indicator_flags[, sync_type]]) | ||
Parameters: | ||
target_name | (string) name of the target to find the npc closest to | |
group | (string or table) name of a script group, or a script group table with a "name" field | |
object_indicator_id | (integer) ID of the object indicator asset to use | |
object_indicator_flags | (integer, optional) flags for the object indicator (defaults to OI_FLAGS_DEFAULT) | |
sync_type | (enumeration, optional) synchronization type (SYNC_LOCAL = affects local player, SYNC_REMOTE = affects remote player, or SYNC_ALL = affects both players; defaults to SYNC_ALL) | |
Returns: | ||
(string) the name of the npc that got the marker, or "" if none. | ||
Description: | ||
Add an object indicator to the npc in the script group closest to the target. | ||
back to index | SR3 Script Action Documentation Last updated: Tue, 09 Aug 2011 11:32:15 |