BIS fnc moduleCoverMap: Difference between revisions
Jump to navigation
Jump to search
m (added example and short description. WIP) |
m (Updated page, wip) |
||
Line 8: | Line 8: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Covers the map except a defined area to highlight the area of operation. Works on dedicated server. | | {{wip}}Covers the map except a defined area to highlight the area of operation. Works on dedicated server. This function was designed to be used by the [[Modules|Modules framework]], but it can also be used with module.<br><br>It's essential for the function to work that '''centerUnit''' has the variable '''objectArea''' defined.<br> | ||
<code>_centerObject [[setVariable]] ["objectArea",[sizeX,sizeY,rotation,unused,unused]]</code>|DESCRIPTION= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | [centerUnit,units,init] call [[BIS_fnc_moduleCoverMap]]|SYNTAX= | ||
|p1= | | |p1= centerUnit: [[Object]] - Unit which is used as center|Parameter 1= | ||
|p2= units: [[Array]] - '''Not used inside the function'''|Parameter 2= | |||
|p3= init: [[Boolean]] - [[True]] to create cover map effect, [[false]] to remove all markers and destroy the effect|Parameter 3= | |||
| |RETURNVALUE= | | |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code> | |x1= <code>_centerObject [[setVariable]] ["objectArea",[1000,0000,0,[[false]],0]]; | ||
[_centerObject,[],[[true]] ] [[call]] [[BIS_fnc_moduleCoverMap]];//Covers the whole map except an area of 1000 m by 1000 m</code> |= | [_centerObject,[],[[true]] ] [[call]] [[BIS_fnc_moduleCoverMap]];//Covers the whole map except an area of 1000 m by 1000 m, can be used to dynamically change size of the area during mission</code> |= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 17:03, 7 August 2019
Description
- Description:
- Template:wipCovers the map except a defined area to highlight the area of operation. Works on dedicated server. This function was designed to be used by the Modules framework, but it can also be used with module.
It's essential for the function to work that centerUnit has the variable objectArea defined.
_centerObject setVariable ["objectArea",[sizeX,sizeY,rotation,unused,unused]]
- Execution:
- call
- Groups:
- Uncategorised
Syntax
- Syntax:
- [centerUnit,units,init] call BIS_fnc_moduleCoverMap
- Parameters:
- centerUnit: Object - Unit which is used as center
- units: Array - Not used inside the function
- init: Boolean - True to create cover map effect, false to remove all markers and destroy the effect
- Return Value:
- Return value needed
Examples
- Example 1:
_centerObject setVariable ["objectArea",[1000,0000,0,false,0]]; [_centerObject,[],true ] call BIS_fnc_moduleCoverMap;//Covers the whole map except an area of 1000 m by 1000 m, can be used to dynamically change size of the area during 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