BIS fnc moduleCoverMap: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "|Game version=" to "|Game version= |gr1= Modules |GROUP1=") |
m (Text replacement - "\[\[Category\:Function Group\: Misc(\|\{\{[a-zA-Z0-9_:]+\}\})?\]\]" to "") |
||
Line 46: | Line 46: | ||
<h3 style="display:none">Bottom Section</h3> | <h3 style="display:none">Bottom Section</h3> | ||
[[Category:Functions|{{uc:moduleCoverMap}}]] | [[Category:Functions|{{uc:moduleCoverMap}}]] | ||
[[Category:{{Name|arma3}}: Functions|{{uc:moduleCoverMap}}]] | [[Category:{{Name|arma3}}: Functions|{{uc:moduleCoverMap}}]] |
Revision as of 01:28, 10 October 2020
Description
- Description:
- 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 framework, but it can also be used with module. The effect does not move with the centerObject.
It's essential for the function to work that centerObject has the variable objectArea defined.
centerObject setVariable ["objectArea",[sizeX,sizeY,rotation]]
- centerObject Object - Object which is used as center
- sizeX: Number - Length in x in meters
- sizeY: Number - Length in y in meters
- roation: Number - Rotation of the rectangle in degree
- Execution:
- call
- Groups:
- Modules
Syntax
- Syntax:
- [centerUnit,units,init] call BIS_fnc_moduleCoverMap
- Parameters:
- centerUnit: Object - Object 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:
- Nothing
Examples
- Example 1:
centerObject setVariable ["objectArea",[1000,1000,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:
- showMap
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