guilemouse / Overthrow

An effort to balance and fix the dynamic and persistent revolution platform for Arma 3.
https://steamcommunity.com/sharedfiles/filedetails/?id=2572102841
GNU General Public License v2.0
0 stars 3 forks source link

Barracks in NATO comms outposts have no owner and are throwing exceptions due to this. #26

Closed guilemouse closed 3 years ago

guilemouse commented 3 years ago

Solution: Set get variable to have the default value if no owner, then check that value when buying from to determine purchase ability.

I fix this tomorrowish.

guilemouse commented 3 years ago
_fobs = server getVariable ["NATOfobs",[]];

{
    _x params ["_pos"];
    _pos = (check if near building player is checking)
    };
}foreach(_fobs);

Something like this maybe...