BIS fnc moduleCoverMap: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ :\\\-\/|()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}") |
m (formatting) |
||
Line 1: | Line 1: | ||
{{RV|type=function | {{RV|type=function | ||
| arma3 | |game1= arma3 | ||
|1.00 | |version1= 1.00 | ||
|gr1= Modules | |gr1= Modules | ||
|eff= global|Covers the map except a defined area | |gr2= Map and Markers | ||
|eff= global | |||
|descr= Covers the map except for a defined area. This function was designed to be used by the [[Modules|Modules framework]], but it can also be used without the module. The effect does not move with the centerObject.<br><br>It is essential for the function to work that '''centerObject''' has the variable '''objectArea''' defined.<br> | |||
{{ic|centerObject [[setVariable]] ["objectArea", [sizeX, sizeY, rotation]]}} | |||
*centerObject [[Object]] - Object which is used as center | *centerObject [[Object]] - Object which is used as center | ||
*sizeX: [[Number]] - Length in x in meters | *sizeX: [[Number]] - Length in x in meters | ||
Line 15: | Line 19: | ||
[[File:BIS fnc moduleCoverMap.jpg|500px]] | [[File:BIS fnc moduleCoverMap.jpg|500px]] | ||
| [centerUnit,units,init] call [[BIS_fnc_moduleCoverMap]] | |s1= [centerUnit,units,init] call [[BIS_fnc_moduleCoverMap]] | ||
|p1= centerUnit: [[Object]] - Object which is used as center | |p1= centerUnit: [[Object]] - Object which is used as center | ||
|p2= units: [[Array]] - '''Not used inside the function''' | |p2= units: [[Array]] - '''Not used inside the function''' | ||
|[[Nothing]] | |p3= init: [[Boolean]] - [[true|True]] to create cover map effect, [[false]] to remove all markers and destroy the effect | ||
|r1= [[Nothing]] | |||
|x1= <code>centerObject [[setVariable]] ["objectArea",[1000,1000,0,[[false]],0]]; | |x1= <code>centerObject [[setVariable]] ["objectArea",[1000, 1000, 0, [[false]], 0]]; | ||
[_centerObject,[],[[true]]<noWiki>]</noWiki> [[call]] [[BIS_fnc_moduleCoverMap]]; | [_centerObject,[],[[true]]<noWiki>]</noWiki> [[call]] [[BIS_fnc_moduleCoverMap]]; {{cc|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> | ||
|seealso= [[showMap]] | |seealso= [[showMap]] | ||
}} | }} |
Revision as of 23:12, 2 June 2021
Description
- Description:
- Covers the map except for a defined area. This function was designed to be used by the Modules framework, but it can also be used without the module. The effect does not move with the centerObject.
It is 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:
- ModulesMap and Markers
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