object_indicator_add(object_name, asset_id[, flags[, sync_type[, fade_dist]]])

Parameters:
object_name (table or string) table of names of the objects to add indicators to (or a single object, table of tables, etc.)
asset_id (int) ID of the indicator asset to use
flags (int, 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)
fade_dist (float, optional) distance to start fading if the OI_FLAG_FADE flag is specified (default, 100.0)
 
Returns:
none

Description:
Add object indicators to a table (or single object) of NPCs, vehicles, items, or anything else that's set up in object_indicator.h

Returns the number of object indicators that were added

 

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