synchronizedObjects: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
(note format fixed)
Line 23: Line 23:




|x1= <pre>_objects = synchronizedObjects _logic</pre> |= EXAMPLE1  
|x1= <code>_objects = [[synchronizedObjects]] _logic;</code> |= EXAMPLE1  


____________________________________________________________________________________________
____________________________________________________________________________________________
Line 34: Line 34:


<h3 style='display:none'>Notes</h3>
<h3 style='display:none'>Notes</h3>
<dl class='command_description'>
<dl class="command_description">
<dd class="notedate">Posted 07:13, 11 November 2010 (UTC)</dd>
<dt class="note">[[User:Turrican|Turrican]]</dt>
<dd class="note">
<!-- Note Section BEGIN -->
<!-- Note Section BEGIN -->
This command only returns the LEADER of a vehicle that is synchronized. You have to use the "vehicle"
This command only returns the LEADER of a vehicle that is synchronized. You have to use the "vehicle"
Line 44: Line 47:
In MP this command returns only values when the object is local. otherwise it returns an empty array.
In MP this command returns only values when the object is local. otherwise it returns an empty array.
<!-- Note Section END -->
<!-- Note Section END -->
</dd>
</dl>
</dl>



Revision as of 11:18, 31 July 2016

Hover & click on the images for description

Description

Description:
Return the list of objects synchronized with the given unit.
Groups:
Uncategorised

Syntax

Syntax:
synchronizedObjects unit
Parameters:
unit: Object -
Return Value:
Array

Examples

Example 1:
_objects = synchronizedObjects _logic;

Additional Information

See also:
synchronizeObjectsAddsynchronizeObjectsRemovesynchronizedTriggerssynchronizedWaypoints

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

Posted 07:13, 11 November 2010 (UTC)
Turrican
This command only returns the LEADER of a vehicle that is synchronized. You have to use the "vehicle" command to select the actual vehicle. This command only returns the synchronized objects when used on intelligent objects such as units or logic objects. All other objects returns an empty array. In MP this command returns only values when the object is local. otherwise it returns an empty array.

Bottom Section

Posted on February 26, 2015 - 18:03 (UTC)
Bull A
When returning the synchronized objects, they are returned in the order that they were placed on the map