CBA_fnc_createMarker

Description

Creates a marker all at once.

Parameters

_markerNameName of marker to create [String]
_position[Array: [x, y]]
_shape”ICON”, “RECTANGLE” or “ELLIPSE” [String]
_size[Array: [width, height]]

Optional Parameters

”GLOBAL”Add for a global marker, but leave out for a local marker.
”PERSIST”Add for persisting global marker to JIP players.  Implies “GLOBAL” when included.
”BRUSH:”e.g.  “Solid”
”COLOR:”e.g.  “ColorRed”
”TEXT:”e.g.  “Objective Area”
”TYPE:”e.g.  “Pickup”

Returns

Name of the marker [String]

Examples

// simple marker creation
_marker = ["markername", [positionX,positionY], "Rectangle", [sizeX, sizeY]] call CBA_fnc_createMarker;
// Color yellow
_marker = ["markername", [positionX,positionY], "Rectangle", [sizeX, sizeY], "COLOR:", "ColorYellow"] call CBA_fnc_createMarker;
// Global marker - will be visible to all players currently ingame
_marker = ["markername", [positionX,positionY], "Rectangle", [sizeX, sizeY], "COLOR:", "ColorYellow", "GLOBAL"] call CBA_fnc_createMarker;
// Global persistent marker - will be visible to all players currently ingame, and also to JIP players
_marker = ["markername", [positionX,positionY], "Rectangle", [sizeX, sizeY], "COLOR:", "ColorYellow", "PERSIST"] call CBA_fnc_createMarker;

Author

Sickboy (sb_at_dev-heaven.net) 6thSense.eu Mod

Close