Advertisement
Guest User

Untitled

a guest
Nov 1st, 2014
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. if(!isServer) exitWith {};
  2. /*
  3. ASORET
  4. ASOR_Entities
  5. [2, "and"] spawn asoret_fnc_objSelect;
  6. */
  7. private["_objAmount","_objType","_objSelect"];
  8.  
  9. _objAmount = [_this, 0, 1, [0]] call BIS_fnc_Param;
  10. _objType = [_this, 1, "and", [""]] call BIS_fnc_Param; //"or" and "and"
  11.  
  12. _objSelect = switch (_objAmount) do {
  13. case 1: {
  14. };
  15.  
  16. case 2: {
  17. if ( _objType == "or" ) then {
  18. [] spawn { while {true} do {
  19. {
  20. ASORET_objComplete = if ( (ASORET_obj1) or (ASORET_obj2)) then { true;};
  21. };
  22. sleep 25;
  23. };
  24. };
  25. };
  26. if ( _objType == "and" ) then {
  27. [] spawn { while {true} do {
  28. {
  29. if ( (ASORET_obj1) and (ASORET_obj2)) then { ASORET_objComplete = true;};
  30. };
  31. sleep 25;
  32. };
  33. };
  34. };
  35. };
  36.  
  37. case 3: { [_objType] spawn ASORET_fnc_objOne; };
  38. case 4: { [_objType] spawn ASORET_fnc_objOne; };
  39. case 5: { [_objType] spawn ASORET_fnc_objOne; };
  40. case 6: { [_objType] spawn ASORET_fnc_objOne; };
  41. case 7: { [_objType] spawn ASORET_fnc_objOne; };
  42. case 8: { CustomObjectiveStatus = 1 };
  43. case 9: { CustomObjectiveStatus = 1 };
  44. case 10: { CustomObjectiveStatus = 1 };
  45. default { };
  46. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement