Reinforcement level variable

  1. 9 years ago

    Is there a way to change this variable outside of missions and support modules? I would like to change it manually through when using ai recruitment scripts.

  2. See here bottom of page:
    http://alivemod.com/wiki/index.php/Script_Snippets

    Military Logistics and the Player Resupply module both work from the Global Force Pool to establish the allowed reinforcement levels for a faction. You can adjust this value on the fly in your own missions to add or remove from the global force pool. If running on a dedicated server, this must be performed on the server side only.

    if(isServer) then {
     
    	// example: get the global force pool count for the BLU_F faction
            _currentBLUFORForcepool = [ALIVE_globalForcePool,"BLU_F"] call ALIVE_fnc_hashGet;
     
            // example: alter the current BLU_F force pool
            [ALIVE_globalForcePool,"BLU_F",20] call ALIVE_fnc_hashSet;
     
    };
  3. Thanks I'll give it a try

 

or Sign Up to reply!