BIN fnc setSite: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "BIS_fnc_exportFunctionsToWiki)''</small> |" to "BIS_fnc_exportFunctionsToWiki)''</small> {{Feature arma3contact|This function is part of the Arma 3 Contact expansion only.}} |")
m (Some wiki formatting)
 
(28 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function|Comments=
{{RV|type=function
____________________________________________________________________________________________


| arma3 |Game name=
|game1= arma3
|version1= 1.94


|1.94|Game version=
|gr1= Contact
____________________________________________________________________________________________


| <pre>#define DEBUG
|descr= <pre>#define DEBUG
#define ALPHA_ON 1.0
#define ALPHA_ON 1.0
#define ALPHA_OFF 0.4
#define ALPHA_OFF 0.4
Line 14: 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_fnc_debugDraw;\
["bin_diagSites",_class,"icon",[_drawIcon]] call BIN_fnc_debugDraw;\
_isRectangle = false;\
_isRectangle = false;\
_drawArea = if (SHOW) then {\
_drawArea = if (SHOW) then {\
Line 25: 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_fnc_debugDraw;
["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>


</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small>
{{Wiki|placeholder}}
{{Feature arma3contact|This function is part of the [[Arma 3 Contact]] expansion only.}} |Description=
{{Feature|arma3contact}}
____________________________________________________________________________________________


| <!-- [] call [[BIN_fnc_setSite]]; --> |Syntax=
|s1= <!-- [] call [[BIN_fnc_setSite]] -->


|p1= |Parameter 1=
|r1=


| |Return value=
|x1=
____________________________________________________________________________________________


|x1= <code></code> |Example 1=
|seealso=
____________________________________________________________________________________________
 
| |See also=
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Campaign|{{uc:setSite}}]]
[[Category:Functions|{{uc:setSite}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:setSite}}]]

Latest revision as of 16:29, 14 December 2021

Hover & click on the images for description

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"
🏗
Placeholder description extracted from the function header by BIS_fnc_exportFunctionsToWiki.
enoch icon ca.png
This content is exclusive to the Arma 3 Contact Expansion.
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