object: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (fixed example)
m (adjusted notes formating)
Line 31: Line 31:
Available in '''v1.75''' (Resistance) and above.  
Available in '''v1.75''' (Resistance) and above.  


Since version '''1.85''', you can't [[setPos]] island objects to get them out of the way, but you can use [[setDamage]] 1 to get trees or other flora out of the way. Since [[Armed Assault]] this command is no longer available due to terrain data streaming, you need to use extended variant of [[nearestObject]] instead.
Since version '''1.85''', you can't [[setPos]] island objects to get them out of the way, but you can use [[setDamage]] 1 to get trees or other flora out of the way.  
 
Since [[Armed Assault]] this command is no longer available due to terrain data streaming, you need to use extended variant of [[nearestObject]] instead.
<!-- Note Section END -->
<!-- Note Section END -->
</dl>
</dl>

Revision as of 18:54, 3 October 2006

Hover & click on the images for description

Description

Description:
Return object with given id. Object ID's can be checked in mission editor.
Groups:
Uncategorised

Syntax

Syntax:
object id
Parameters:
id: Number
Return Value:
Object

Examples

Example 1:
_obj = object 1

Additional Information

See also:
See also needed

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

To check object ID's in the Mission Editor click on "Show IDs" and zoom in close. Available in v1.75 (Resistance) and above. Since version 1.85, you can't setPos island objects to get them out of the way, but you can use setDamage 1 to get trees or other flora out of the way. Since Armed Assault this command is no longer available due to terrain data streaming, you need to use extended variant of nearestObject instead.

Bottom Section