object: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Some wiki formatting)
m (Some wiki formatting)
 
(9 intermediate revisions by the same user not shown)
Line 6: Line 6:
|game2= ofpe
|game2= ofpe
|version2= 1.00
|version2= 1.00
|game3= arma1
|version3= 1.00


|gr1= Object Detection
|gr1= Object Detection


|descr= Returns [[Object]] with given id. Object's id can be checked in mission editor.
|descr= Returns [[Object]] with given id. Object's id can be checked in mission editor.
{{Feature|important|For later titles, use [[nearestObject]] command family instead.}}
{{Feature|important|This command was removed as of {{arma1}} '''v1.08'''; for later versions and titles, use [[nearestObject]] command family instead.}}


|s1= [[object]] id
|s1= [[object]] id
Line 17: Line 20:


|r1= [[Object]]
|r1= [[Object]]
 
|x1= <code>_object = [[object]] 1; </code>


|seealso= [[nearestObjects]], [[nearObjectsReady]], [[nearObjects]], [[nearestObject]]
|x1= <sqf>_object = object 1;</sqf>
 
|seealso= [[nearestObjects]] [[nearObjectsReady]] [[nearObjects]] [[nearestObject]]
}}
}}


<dl class="command_description">
{{Note
<dt></dt>
|user= Hoz
<dd class="notedate">Posted on 22:10, 1 August 2006</dd>
|timestamp= 20060801221000
<dt class="note">[[User:Hoz|Hoz]]<dd class="note">
|text=
{{GVI|ofp|1.75}} To check object's id in the Mission Editor click on "Show IDs" and zoom in closely. <br>
{{GVI|ofp|1.75}} To check object's id in the Mission Editor click on "Show IDs" and zoom in closely.<br>
{{GVI|ofp|1.85}} You cannot {{ic|_object [[setPos]] [-10000, 0 ,0];}} terrain objects to get them out of the way, but you can use {{ic|_object [[setDamage]] 1;}} to get trees or other flora out of the way. <br>
{{GVI|ofp|1.85}} You cannot <sqf inline>_object setPos [-10000, 0 ,0];</sqf> terrain objects to get them out of the way, but you can use <sqf inline>_object setDamage 1;</sqf> to get trees or other flora out of the way.<br>
{{GVI|arma1|1.08}} This command is no longer available due to terrain data streaming, you need to use extended variant of [[nearestObject]] instead.
{{GVI|arma1|1.08}} This command is no longer available due to terrain data streaming, you need to use extended variant of [[nearestObject]] instead.
</dl>
}}

Latest revision as of 15:17, 1 July 2022

Hover & click on the images for description

Description

Description:
Returns Object with given id. Object's id can be checked in mission editor.
This command was removed as of Armed Assault v1.08; for later versions and titles, use nearestObject command family instead.
Groups:
Object Detection

Syntax

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

Examples

Example 1:
_object = object 1;

Additional Information

See also:
nearestObjects nearObjectsReady nearObjects nearestObject

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
Hoz - c
Posted on Aug 01, 2006 - 22:10 (UTC)
Logo A0.png1.75 To check object's id in the Mission Editor click on "Show IDs" and zoom in closely.
Logo A0.png1.85 You cannot _object setPos [-10000, 0 ,0]; terrain objects to get them out of the way, but you can use _object setDamage 1; to get trees or other flora out of the way.
Logo A1 black.png1.08 This command is no longer available due to terrain data streaming, you need to use extended variant of nearestObject instead.