BIN fnc setSite: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\|game([0-9])=([^ ]+) * \|version([0-9])=([^ ]+) * " to "|game$1=$2 |version$3=$4 ") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(One intermediate revision by the same user not shown) | |||
Line 13: | Line 13: | ||
if !(SHOW) then {_color set [3,0.4];};\ | if !(SHOW) then {_color set [3,0.4];};\ | ||
_drawIcon = ["\a3\Ui_f\data\Map\LocationTypes\borderCrossing_CA.paa",_color,position _logic,0.75,0.75,0,_class,2,0.04,"RobotoCondensed","right"];\ | _drawIcon = ["\a3\Ui_f\data\Map\LocationTypes\borderCrossing_CA.paa",_color,position _logic,0.75,0.75,0,_class,2,0.04,"RobotoCondensed","right"];\ | ||
["bin_diagSites",_class,"icon",[_drawIcon]] call | ["bin_diagSites",_class,"icon",[_drawIcon]] call BIN_fnc_debugDraw;\ | ||
_isRectangle = false;\ | _isRectangle = false;\ | ||
_drawArea = if (SHOW) then {\ | _drawArea = if (SHOW) then {\ | ||
Line 24: | Line 24: | ||
[_areaIn select 0,_areaIn select 1,_areaIn select 2,_areaIn select 3,_color,""]\ | [_areaIn select 0,_areaIn select 1,_areaIn select 2,_areaIn select 3,_color,""]\ | ||
};\ | };\ | ||
["bin_diagSites",_class,if (_isRectangle) then {"rectangle"} else {"ellipse"},[_drawArea]] call | ["bin_diagSites",_class,if (_isRectangle) then {"rectangle"} else {"ellipse"},[_drawArea]] call BIN_fnc_debugDraw; | ||
#define VAR_IGNORE "$i" | #define VAR_IGNORE "$i" | ||
#define VAR_KILL "$k" | #define VAR_KILL "$k" | ||
#define VAR_VISITED "$v" | #define VAR_VISITED "$v" | ||
#define VAR_SPAWNED "#spawned" | #define VAR_SPAWNED "#spawned"</pre> | ||
{{Wiki|placeholder}} | {{Wiki|placeholder}} |
Latest revision as of 16:29, 14 December 2021
Description
- Description:
#define DEBUG #define ALPHA_ON 1.0 #define ALPHA_OFF 0.4 #define DRAW(SHOW)\ _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);\ if !(SHOW) then {_color set [3,0.4];};\ _drawIcon = ["\a3\Ui_f\data\Map\LocationTypes\borderCrossing_CA.paa",_color,position _logic,0.75,0.75,0,_class,2,0.04,"RobotoCondensed","right"];\ ["bin_diagSites",_class,"icon",[_drawIcon]] call BIN_fnc_debugDraw;\ _isRectangle = false;\ _drawArea = if (SHOW) then {\ _areaOut = _logic getvariable ["areaOut",[position _logic,0,0,0,false]];\ _isRectangle = _areaOut select 4;\ [_areaOut select 0,_areaOut select 1,_areaOut select 2,_areaOut select 3,_color,""]\ } else {\ _areaIn = _logic getvariable ["areaIn",[position _logic,0,0,0,false]];\ _isRectangle = _areaIn select 4;\ [_areaIn select 0,_areaIn select 1,_areaIn select 2,_areaIn select 3,_color,""]\ };\ ["bin_diagSites",_class,if (_isRectangle) then {"rectangle"} else {"ellipse"},[_drawArea]] call BIN_fnc_debugDraw; #define VAR_IGNORE "$i" #define VAR_KILL "$k" #define VAR_VISITED "$v" #define VAR_SPAWNED "#spawned"
- Execution:
- call
- Groups:
- Contact
Syntax
- Syntax:
- Syntax needed
- Return Value:
- Return value needed
Examples
- Examples:
- Example needed
Additional Information
- See also:
- See also needed
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note