Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(!isServer) exitWith {};
- /*
- ASORET
- ASOR_Entities
- [2, "and"] spawn asoret_fnc_objSelect;
- */
- private["_objAmount","_objType","_objSelect"];
- _objAmount = [_this, 0, 1, [0]] call BIS_fnc_Param;
- _objType = [_this, 1, "and", [""]] call BIS_fnc_Param; //"or" and "and"
- _objSelect = switch (_objAmount) do {
- case 1: {
- };
- case 2: {
- if ( _objType == "or" ) then {
- [] spawn { while {true} do {
- {
- ASORET_objComplete = if ( (ASORET_obj1) or (ASORET_obj2)) then { true;};
- };
- sleep 25;
- };
- };
- };
- if ( _objType == "and" ) then {
- [] spawn { while {true} do {
- {
- if ( (ASORET_obj1) and (ASORET_obj2)) then { ASORET_objComplete = true;};
- };
- sleep 25;
- };
- };
- };
- };
- case 3: { [_objType] spawn ASORET_fnc_objOne; };
- case 4: { [_objType] spawn ASORET_fnc_objOne; };
- case 5: { [_objType] spawn ASORET_fnc_objOne; };
- case 6: { [_objType] spawn ASORET_fnc_objOne; };
- case 7: { [_objType] spawn ASORET_fnc_objOne; };
- case 8: { CustomObjectiveStatus = 1 };
- case 9: { CustomObjectiveStatus = 1 };
- case 10: { CustomObjectiveStatus = 1 };
- default { };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement