fnc_addJammerLocal.sqf 329 B

123456789
  1. params["_jammer", "_radius", "_strength", "_active"];
  2. if(!hasInterface) exitWith { };
  3. if(player getVariable ["rd501_jammers_pfh", -1] == -1) exitWith {
  4. private _handler = [{
  5. _this call rd501_fnc_jammersPFH;
  6. }, 0.5, [player]] call CBA_fnc_addPerFrameHandler;
  7. player setVariable ["rd501_jammers_pfh", _handler];
  8. _handler
  9. };