BIS fnc drawAO: Difference between revisions
Jump to navigation
Jump to search
(Polished page to include more detailed info.) |
No edit summary |
||
Line 36: | Line 36: | ||
[[Category:Functions|{{uc:drawAO}}]] | [[Category:Functions|{{uc:drawAO}}]] | ||
[[Category:{{Name|arma3}}: Functions|{{uc:drawAO}}]] | [[Category:{{Name|arma3}}: Functions|{{uc:drawAO}}]] | ||
<!-- CONTINUE Notes --> | |||
<dl class="command_description"> | |||
<dd class="notedate">Posted on September 28, 2014 - 17:16 (UTC)</dd> | |||
<dt class="note">[[User:Tryteyker-|Tryteyker-]]</dt> | |||
<dd class="note"> | |||
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: | |||
<br> | |||
<code> | |||
Activation: Anybody OR side player<br> | |||
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) | |||
</code> | |||
<br> | |||
The following attributes are saved by the function once it is called, all attributes originating from trigger:<br> | |||
<code> | |||
_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;</code> | |||
<br> | |||
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. | |||
</dd> | |||
</dl> | |||
<!-- DISCONTINUE Notes --> |
Revision as of 18:16, 28 September 2014
Description
- Description:
- Draws a dashed line around the outer edges of a trigger.
- Execution:
- call
- Groups:
- Uncategorised
Syntax
- Syntax:
- [triggerName] call BIS_fnc_drawAO;
- Parameters:
- Trigger - Name of trigger that indicates AO.
- Return Value:
- Nothing
Examples
- Example 1:
[Trigger1] call BIS_fnc_drawAO;
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.