object

From Bohemia Interactive Community

Jump to: navigation, search
Editors, please check Policy: Scripting Command Page Syntax.
Introduced in Operation Flashpoint: Resistance version 1.75

Click on the images for descriptions

Introduced in

Game:
Operation Flashpoint: Resistance
Version:
1.75

Description

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

DOES NOT WORK IN ARMED ASSAULT, use nearestObject id instead.

Syntax

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

Examples

Example 1:
_obj = object 1

Additional Information

Multiplayer:
Behaviour unknown.

Notes

Notes

+ Add Note

Only post proven facts here. Use the talk page or the forums for discussions.

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

Personal tools
Buy ArmA now!