BIS fnc drawAO: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "\[\[Category:Function Group: [a-zA-Z0-9_: ]+(\|\{\{[a-zA-Z0-9_: ]+\}\})?\]\]" to " ") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Function|Comments= | {{Function|Comments= | ||
| arma3 |Game name= | | arma3 |Game name= | ||
Line 7: | Line 6: | ||
|gr1 = Map and Markers |GROUP1= | |gr1 = Map and Markers |GROUP1= | ||
| Draws a dashed line around the outer edges of a trigger. |DESCRIPTION= | | Draws a dashed line around the outer edges of a trigger. |DESCRIPTION= | ||
| <nowiki>[[triggerName],''distance'']</nowiki> call '''BIS_fnc_drawAO'''; |SYNTAX= | | <nowiki>[[triggerName],''distance'']</nowiki> call '''BIS_fnc_drawAO'''; |SYNTAX= | ||
Line 20: | Line 17: | ||
| [[Nothing]] |RETURNVALUE= | | [[Nothing]] |RETURNVALUE= | ||
|x1= <code>[Trigger1] call BIS_fnc_drawAO; // Draws a dashed line around trigger1's outer edge, with 50m between each line.</code> |Example1= | |x1= <code>[Trigger1] call BIS_fnc_drawAO; // Draws a dashed line around trigger1's outer edge, with 50m between each line.</code> |Example1= | ||
Line 26: | Line 22: | ||
|x2= <code>[Trigger1,10] call BIS_fnc_drawAO; // Draws a dashed line around trigger1's outer edge, with 10m between each line.</code> |Example2= | |x2= <code>[Trigger1,10] call BIS_fnc_drawAO; // Draws a dashed line around trigger1's outer edge, with 10m between each line.</code> |Example2= | ||
|x3= <code><nowiki>[[Trigger1,Trigger2]]</nowiki> call BIS_fnc_drawAO; // Draws dashed lines around multiple triggers, useful for multiple AOs in one mission.</code> |EXAMPLE3= | |x3= <code><nowiki>[[Trigger1,Trigger2]]</nowiki> call BIS_fnc_drawAO; // Draws dashed lines around multiple triggers, useful for multiple AOs in one mission.</code> |EXAMPLE3= | ||
| |SEEALSO= | | |SEEALSO= |
Revision as of 23:06, 16 January 2021
Description
- Description:
- Draws a dashed line around the outer edges of a trigger.
- Execution:
- call
- Groups:
- Map and Markers
Syntax
- Syntax:
- [[triggerName],''distance''] call BIS_fnc_drawAO;
- Parameters:
- Array - List of triggers that indicate AO.
- Trigger - Single trigger's name that indicates AO. Alternative if only one AO is used.
- Number - Number that decides distance between each new line drawn. (Optional, default 50)
- Return Value:
- Nothing
Examples
- Example 1:
[Trigger1] call BIS_fnc_drawAO; // Draws a dashed line around trigger1's outer edge, with 50m between each line.
- Example 2:
[Trigger1,10] call BIS_fnc_drawAO; // Draws a dashed line around trigger1's outer edge, with 10m between each line.
- Example 3:
[[Trigger1,Trigger2]] call BIS_fnc_drawAO; // Draws dashed lines around multiple triggers, useful for multiple AOs in one mission.
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
Notes
Bottom Section
- Posted on September 28, 2014 - 17:16 (UTC)
- Tryteyker-
-
It is worth noting that the size, color and other attributes that the line may have are dependant on the trigger itself. The crucial attributes for the function to work properly seem to be the following:
Activation: Anybody OR side player
Size: Has to be bigger than 50x50 to be visible (below 50x50 it will not work properly as the function increments in 50 for each new line)
The following attributes are saved by the function once it is called, all attributes originating from trigger:
_triggerPos = position _x; _triggerPosX = _triggerPos select 0; _triggerPosY = _triggerPos select 1; _triggerArea = triggerarea _x; _triggerSizeX = _triggerArea select 0; _triggerSizeY = _triggerArea select 1; _triggerSize = _triggerSizeX max _triggerSizeY; _triggerDir = _triggerArea select 2; _triggerType = _triggerArea select 3; _triggerText = triggerText _x; _triggerActivation = triggeractivation _x select 0; _triggerPresent = triggeractivation _x select 1;
This is taken directly from the function. Text will generally show up on the left hand side (inside the circle/rectangle) AND on the right hand side (outside the circle/rectangle). Size increments can be changed using _this select 1, another example provided above.