BIS fnc drawAO: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\{\{ *cc*\| *([^}]+) *\}\}" to "// $1") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 20: | Line 20: | ||
|x2= <sqf>[Trigger1, 10] call BIS_fnc_drawAO; // draws a dashed line around trigger1's outer edge, with 10m between each line</sqf> | |x2= <sqf>[Trigger1, 10] call BIS_fnc_drawAO; // draws a dashed line around trigger1's outer edge, with 10m between each line</sqf> | ||
|x3= < | |x3= <sqf>[[Trigger1, Trigger2]] call BIS_fnc_drawAO; // draws dashed lines around multiple triggers, useful for multiple AOs in one mission</sqf> | ||
|seealso= | |seealso= |
Revision as of 15:37, 13 July 2022
Description
- Description:
- Draws a dashed line around the outer edges of a trigger.
- Execution:
- call
- Groups:
- Map and Markers
Syntax
- Syntax:
- [triggers, distance] call BIS_fnc_drawAO
- Parameters:
- triggers: Object or Array - trigger or list of triggers that indicate AO
- distance: Number - (Optional, default 50) number that decides distance between each new line drawn
- 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
- 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:
The following attributes are saved by the function once it is called, all attributes originating from trigger: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.private _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;