object: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 1: Line 1:
[[Category:Scripting Commands|OBJECT]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|OBJECT]]
____________________________________________________________________________________________


| ofpr |= Game name


<h2 style="color:#000066">'''object ''id'''''</h2>
|1.75|= Game version
____________________________________________________________________________________________


| Return object with given id. Object ID's can be checked in mission editor. |= Description
____________________________________________________________________________________________


'''Operand types:'''
| '''object''' id |= Syntax


'''id:''' [[Number]]
|p1= id: [[Number]] |= Parameter 1


'''Type of returned value:'''
| [[Object]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>_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 [[Armed Assault]] this command is no longer available due to terrain data streaming, you need to use extended variant of [[nearestObject]] instead.</pre> |= Example 1
____________________________________________________________________________________________


[[Object]]
|  |= See also


'''Compatibility:'''
}}


Added in version '''1.75''', removed in '''ArmA'''
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


'''Description:'''
<!-- Note Section END -->
</dl>


Return object with given '''id'''.
<h3 style="display:none">Bottom Section</h3>


Object ID's can be checked in mission editor.
[[Category:Scripting Commands|OBJECT]]
 
[[Category:Scripting Commands OFP 1.96|OBJECT]]
 
'''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 [[:Category:Armed Assault|Armed Assault]] this command is no longer available due to terrain data streaming, you need to use extended variant of [[nearestObject]] instead.

Revision as of 00:10, 2 August 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 
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 [[Armed Assault]] this command is no longer available due to terrain data streaming, you need to use extended variant of [[nearestObject]] instead.

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

Bottom Section