alleycat 28 Posted November 6, 2013 When referencing a sector module (named sec1 in the top most name field) it displays an error if ((sec1 select 1) == east) then { diag_log text format["%1 is owned by CSAT", sec1]; }; Error select: Type Object, expected Array,Config entry However this works in the sector expression if ((_this select 1) == east) then {(_this select 0) enableSimulation false} Share this post Link to post Share on other sites
Larrow 2822 Posted November 6, 2013 if (sec1 getvariable ["owner", sideUnknown] == east) Will work anywhere. The select way only works inside the expression as this piece of code is evaluated by the module itself. Share this post Link to post Share on other sites
alleycat 28 Posted November 16, 2013 If I want to set the side of a sector, why doesnt this work: sec1 setVariable ["owner", west, true]; Share this post Link to post Share on other sites
moricky 211 Posted November 18, 2013 It won't work, because the sector system calculates owner automatically and will replace your value in the next cycle. However, forcing a sector owner could be quite useful - I expanded the sector function so it can be used for it: [<sector>,<side>] call BIS_fnc_moduleSector; It will be available in the next dev branch update. Thanks for suggestion :) Share this post Link to post Share on other sites