2026-08-29 00:37:37 +10:00
|
|
|
#include "..\..\script_component.hpp"
|
|
|
|
|
|
2026-08-28 18:14:49 +10:00
|
|
|
params [
|
|
|
|
|
["_logic", objNull, [objNull]], // Argument 0 is module logic
|
|
|
|
|
["_units", [], [[]]], // Argument 1 is a list of affected units (affected by value selected in the 'class Units' argument))
|
|
|
|
|
["_activated", true, [true]] // True when the module was activated, false when it is deactivated (i.e., synced triggers are no longer active)
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
if (!_activated) exitWith {};
|
|
|
|
|
|
|
|
|
|
private _side = _logic getVariable ["Side", -1];
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
[_x, _side] remoteExec [QFUNC(initHQ), 2];
|
|
|
|
|
} forEach synchronizedObjects _logic;
|
2026-08-29 00:37:37 +10:00
|
|
|
|
|
|
|
|
diag_log format [
|
|
|
|
|
"Synced objects: %1",
|
|
|
|
|
synchronizedObjects _logic
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
diag_log format [
|
|
|
|
|
"Synced units: %1",
|
|
|
|
|
_units
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
diag_log format [
|
|
|
|
|
"Attached objects: %1",
|
|
|
|
|
attachedObjects _logic
|
|
|
|
|
];
|