Advertisement
Gamenator

pook_mig23 init.sqf

Jan 9th, 2024
1,716
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 0.83 KB | None | 0 0
  1. // @ SERVER and Single-player:
  2. if (!isServer) exitWith {};
  3. _v = _this select 0;
  4.  
  5. private ["_camo","_num1","_num2","_logo2"];
  6. _camo = _v getVariable "camo";
  7.  
  8. if (isNil "_camo") then { // if values are null, need to populate
  9.     _camo = floor(random 8); // 9: 0-8
  10.     _num1 = floor(random 9); // 10: 0-9
  11.     _num2 = floor(random 9); // 10: 0-9
  12.     _logo2 = floor(random 9); // 10: 0-9
  13.  
  14.     _v SetVariable ['ELS_Active',0,true];
  15. };
  16.  
  17. _v setVariable ['camo', _camo, true];
  18. _v setVariable ['num1', _num1, true];
  19. _v setVariable ['num2', _num2, true];
  20.  
  21. if (_logo2 > 4) then {
  22.     _v setVariable ['logo2', true, true];
  23. } else {
  24.     _v setVariable ['logo2', false, true];
  25. };
  26.  
  27. [[[_v,_v getVariable 'camo', _v getVariable 'num1', _v getVariable 'num2', _v getVariable 'logo2'],"\pook_MIG23\scripts\randomClient.sqf"],"BIS_fnc_execVM"] call BIS_fnc_MP;
  28.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement