{"name":"BIN_fnc_setSite","title":"BIN fnc setSite","type":"function","url":"https://community.bistudio.com/wiki/BIN_fnc_setSite","revid":296447,"updated":"2021-12-14T15:29:39Z","groups":["Contact"],"status":"ok","games":{"arma3":"1.94"},"since":"arma3 1.94","arma3_since":"1.94","description":"```\n#define DEBUG\n#define ALPHA_ON    1.0\n#define ALPHA_OFF    0.4\n#define DRAW(SHOW)\\\n    _color = [[1,0,0,1],[0,1,0,1],[0,0,1,1],[1,1,0,1],[1,0,1,1],[0,1,1,1],[1,0.5,0,1]] select ((_logic getvariable [\"#index\",0]) % 7);\\\n    if !(SHOW) then {_color set [3,0.4];};\\\n    _drawIcon = [\"\\a3\\Ui_f\\data\\Map\\LocationTypes\\borderCrossing_CA.paa\",_color,position _logic,0.75,0.75,0,_class,2,0.04,\"RobotoCondensed\",\"right\"];\\\n    [\"bin_diagSites\",_class,\"icon\",[_drawIcon]] call BIN_fnc_debugDraw;\\\n    _isRectangle = false;\\\n    _drawArea = if (SHOW) then {\\\n        _areaOut = _logic getvariable [\"areaOut\",[position _logic,0,0,0,false]];\\\n        _isRectangle = _areaOut select 4;\\\n        [_areaOut select 0,_areaOut select 1,_areaOut select 2,_areaOut select 3,_color,\"\"]\\\n    } else {\\\n        _areaIn = _logic getvariable [\"areaIn\",[position _logic,0,0,0,false]];\\\n        _isRectangle = _areaIn select 4;\\\n        [_areaIn select 0,_areaIn select 1,_areaIn select 2,_areaIn select 3,_color,\"\"]\\\n    };\\\n    [\"bin_diagSites\",_class,if (_isRectangle) then {\"rectangle\"} else {\"ellipse\"},[_drawArea]] call BIN_fnc_debugDraw;\n\n#define VAR_IGNORE    \"$i\"\n#define VAR_KILL    \"$k\"\n#define VAR_VISITED    \"$v\"\n#define VAR_SPAWNED    \"#spawned\"\n```\n\n> [!NOTE]\n> This content is exclusive to the Arma 3 Contact Expansion.","syntaxes":[{"syntax":"","params":[],"returns":null}]}