• 0
Sebas

Do not require territory flag

Question

9 answers to this question

Advertisement
  • 0

hi, I have it as text in the file you told me.  all _no_need_for_Terriotry I replace them with _requiresTerritory ?

/**
 * Exile Mod
 * www.exilemod.com : changed by TBH Fatboy for campfires without flag.
 * © 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["_object","_position","_canBuildHere","_ourUID","_radius","_buildRights","_no_need_for_Terriotry"];
_object = _this;
_position = _this;
_canBuildHere = false;
_ourUID = getPlayerUID player;

_no_need_for_Terriotry = getArray(missionConfigFile >> "CfgTerritories" >> "noNeedForTerritory");

if((typeof _object) in _no_need_for_Terriotry) then
{
    _canBuildHere = true;
};

{
    _radius = _x getVariable ["ExileTerritorySize", -1];
    if ((_position distance2D _x) < _radius) then
    {
        _buildRights = _x getVariable ["ExileTerritoryBuildRights", []];
        if (_ourUID in _buildRights) exitWith
        {
            _canBuildHere = true;
        };
    };
}
forEach (_position nearObjects ["Exile_Construction_Flag_Static", 300]);
_canBuildHere

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.