Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define framework
- #include "core\script_macros.hpp"
- #include "core\init.sqf" //DO NOT REMOVE
- #include "customization\settings.sqf" //DO NOT REMOVE
- #include "core\dia\debug\dia_debug.sqf" //DO NOT REMOVE
- if (isServer) then {
- "" call FNC_StartingCount; //DO NOT REMOVE
- [] spawn { //Spawns code running in parallel
- while {!FW_MissionEnded} do { //Loops while the mission is not ended
- #include "customization\endConditions.sqf" //DO NOT REMOVE
- //The time limit in minutes variable called FW_TimeLimit is set in customization/settings.sqf, to disable the time limit set it to 0
- if ((time / 90) >= FW_TimeLimit && FW_TimeLimit != 0) exitWith { //It is recommended that you do not remove the time limit end condition
- FW_TimeLimitMessage call FNC_EndMission;
- };
- };
- };
- //Randomize ANA personality players
- //Change the 5 to however many personalities you have
- private "_n";
- b_ANAplayers = [];
- b_ANApers = [];
- {
- if (_x getVariable ["b_isANA", false]) then {
- b_ANAplayers = b_ANAplayers + [_x];
- };
- } forEach allPlayers;
- diag_log format["b_ANAplayers: %1", b_ANAplayers];
- while {(count b_ANApers < 5) && (count b_ANAplayers > 0)} do {
- _n = floor(random(count b_ANAplayers));
- b_ANApers = b_ANApers + [b_ANAplayers select _n];
- b_ANAplayers = b_ANAplayers - [b_ANAplayers select _n];
- };
- publicVariable "b_ANApers";
- };
- #include "modules\modules.sqf" //DO NOT REMOVE
- #include "core\postChecks.sqf" //DO NOT REMOVE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement