fn_createAction.sqf 460 B

123456789101112131415161718
  1. _obj = [_this,0,objNull,[objNull]] call BIS_fnc_param;
  2. _params = [_this,1,[],[[]]] call BIS_fnc_param;
  3. _local = [_this,2,false,[true]] call BIS_fnc_param;
  4. _id = 0;
  5. if (!(isServer && _local)) then { _id = _obj addAction _params; };
  6. _ret = [_id, _obj];
  7. //Add to JIP array
  8. if (isServer && !_local) then
  9. {
  10. [[_obj, _params, true], "AW_fnc_createAction", true] call BIS_fnc_MP;
  11. JIPactions = JIPactions + [[_ret, _params]];
  12. publicVariable "JIPactions";
  13. };
  14. _ret