object: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 40: Line 40:
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 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 [[ArmA]] this command is no longer available due to terrain data streaming, you need to use extended variant of nearestObject instead.
Since [[ArmA]] this command is no longer available due to terrain data streaming, you need to use extended variant of [[nearestObject]] instead.

Revision as of 08:53, 19 April 2006


back to COMREF

object id


Operand types:

id: Number

Type of returned value:

Object

Compatibility:

Added in version 1.75, removed in ArmA

Description:

Return object with given id.

Object ID's can be checked in mission editor.


Example:

_obj = object 1


Comments

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 ArmA this command is no longer available due to terrain data streaming, you need to use extended variant of nearestObject instead.