Jump to content
Sign in to follow this  
El' Rabito

Lockable Containers count as base Object

Recommended Posts

With this small tweak lockable safes/containers count torwards the total base object count. No more bases with 100+ safes 🙂

Make a CfgCustomCode override for ExileServer_system_territory_updateNumberOfConstructions.sqf

/**
 * ExileServer_system_territory_updateNumberOfConstructions
 *
 * Exile Mod
 * www.exilemod.com
 * © 2015 Exile Mod Team
 *
 * This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. 
 * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
 */
 
private["_flag", "_territoryRange", "_numberOfConstructions","_numberOfConstructionsO","_numberOfConstructionsS"];
_flag = _this;
_territoryRange = _flag getVariable ["ExileTerritorySize", 0];
_numberOfConstructionsO = count (_flag nearObjects ["Exile_Construction_Abstract_Static", _territoryRange]);
_numberOfConstructionsS = count (_flag nearObjects ["Exile_Container_Abstract_Safe", _territoryRange]);
_numberOfConstructions = _numberOfConstructionsO + _numberOfConstructionsS;
_flag setVariable ["ExileTerritoryNumberOfConstructions", _numberOfConstructions, true];
  • Like 2
  • Thanks 1

Share this post


Link to post
Share on other sites
Sign in to follow this  

×