synchronizedObjects: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \{\{GameCategory\|[a-z]+[0-9]?\|Scripting Commands\}\}" to "") |
Lou Montana (talk | contribs) m (Text replacement - "\| *p([0-9]+) *=([^↵]+) -↵" to "|p$1=$2") |
||
(9 intermediate revisions by the same user not shown) | |||
Line 19: | Line 19: | ||
|descr= Return the list of objects synchronized with the given unit. | |descr= Return the list of objects synchronized with the given unit. | ||
|s1= | |s1= [[synchronizedObjects]] unit | ||
|p1= unit: [[Object]] | |||
|r1= [[Array]] | |r1= [[Array]] | ||
|x1= < | |x1= <sqf>_objects = synchronizedObjects _logic;</sqf> | ||
|seealso= [[synchronizeObjectsAdd]] | |seealso= [[synchronizeObjectsAdd]] [[synchronizeObjectsRemove]] [[synchronizedTriggers]] [[synchronizedWaypoints]] | ||
}} | }} | ||
Line 45: | Line 44: | ||
</dd> | </dd> | ||
<dt></dt> | <dt></dt> | ||
<dd class="notedate">Posted on | <dd class="notedate">Posted on 2015-02-26 - 18:03 (UTC)</dd> | ||
<dt class="note">[[User:Bull A|Bull A]]</dt> | <dt class="note">[[User:Bull A|Bull A]]</dt> | ||
<dd class="note"> | <dd class="note"> | ||
Line 58: | Line 53: | ||
<dt><dt> | <dt><dt> | ||
<dd class="notedate">Posted on | <dd class="notedate">Posted on 2016-10-27 - 18:52 (UTC)</dd> | ||
<dt class="note">[[User:BobTheHunted|BobTheHunted]]</dt> | <dt class="note">[[User:BobTheHunted|BobTheHunted]]</dt> | ||
<dd class="note"> | <dd class="note"> |
Latest revision as of 11:51, 26 March 2024
Description
- Description:
- Return the list of objects synchronized with the given unit.
- Groups:
- Object Manipulation
Syntax
- Syntax:
- synchronizedObjects unit
- Parameters:
- unit: Object
- Return Value:
- Array
Examples
- Example 1:
Additional Information
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
- Posted 07:13, 11 November 2010 (UTC)
- Turrican
- This command only returns the effective commander 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.
- Posted on 2015-02-26 - 18:03 (UTC)
- Bull A
- When returning the synchronized objects, they are returned in the order that they were placed on the map
- Posted on 2016-10-27 - 18:52 (UTC)
- BobTheHunted
- In Eden you can synchronize both units and their vehicles separately by syncing the gamelogic (or whatever) to the vehicle itself, and then the driver (or whatever other passengers) of the vehicle. To use an entire group, just sync all units within that group to the gamelogic (not just the leader or group icon). By doing this you can execute commands on each unit in a group and just the crew/single unit of a vehicle, or just the vehicle and not the crew, or both the vehicle and the crew.