fnc_addJammer.sqf 428 B

123456789
  1. params["_jammer", ["_radius", 300], ["_strength", 160], ["_active", true]];
  2. _jammers = missionNamespace getVariable ["rd501_jammers",[]];
  3. _jipId = ["rd501_addJammerLocal", [_jammer, _radius, _strength, _active]] call CBA_fnc_globalEventJIP;
  4. _jammers pushBack [_jammer, _radius, _strength, _jipId, _active];
  5. missionNamespace setVariable ["rd501_jammers",_jammers, true];
  6. ["rd501_jammerServerPFH", []] call CBA_fnc_serverEvent;