{"name":"synchronizedObjects","title":"synchronizedObjects","type":"command","url":"https://community.bistudio.com/wiki/synchronizedObjects","revid":379396,"updated":"2026-10-31T00:00:56Z","groups":["Object Manipulation"],"status":"ok","games":{"arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma2 1.00","arma3_since":"0.50","locality":{"argument":"local"},"description":"Return the list of objects synchronized with the given unit.\n\n> [!NOTE]\n> synchronizedObjects only works on triggers and entities with AI (logics, soldiers/players, or vehicles that contain soldiers as the effective commander)","syntaxes":[{"syntax":"synchronizedObjects unit","params":[{"name":"unit","type":"Object","type_expr":"Object"}],"returns":{"type":"Array of Objects","type_expr":"Array<Object>"},"form":"unary","right":{"text":"unit"}}],"examples":[{"code":["_objects = synchronizedObjects _logic;"]}],"see_also":["synchronizeObjectsAdd","synchronizeObjectsRemove","synchronizedTriggers","synchronizedWaypoints"],"notes":[{"user":"Turrican","date":"2010-11-11T07:13:00Z","text":"This command only returns the effective commander of a vehicle that is synchronized. You have to use the \"vehicle\"\ncommand to select the actual vehicle.\n\nThis command only returns the synchronized objects when used on intelligent objects such as units or\nlogic objects. All other objects returns an empty array.\n\nIn MP this command returns only values when the object is local. otherwise it returns an empty array."},{"user":"Bull A","date":"2015-02-26T18:03:00Z","text":"When returning the synchronized objects, they are returned in the order that they were placed on the map"},{"user":"BobTheHunted","date":"2016-10-27T18:52:00Z","text":"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."}]}