Arma 3 Scripting

BIS_fnc_moduleCoverMap

  • Global effect
  • Arma 3 v1.00

Function · also in Map and Markers · Markdown · JSON · original wiki page

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.

Important

It is essential for the function to work that centerObject has the objectArea variable 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
  • rotation: Number - shape's rotation in degree

Syntax

[centerUnit, units, init] call BIS_fnc_moduleCoverMap

Parameters:

Returns: Nothing

Examples

Example 1

// covers the whole map except an area of 1000m by 1000m
// can be used to dynamically change size of the area during mission
centerObject setVariable ["objectArea",[1000, 1000, 0]];    // same format with [[triggerArea]], except the function only needs first three
[centerObject, [], true] call BIS_fnc_moduleCoverMap;

See also

showMap