CBA_fnc_setMarkerPersistent

Description

Sets or unsets JIP persistency on a global marker.

Will broadcast event to server, if function is called on a client

Query persistency with CBA_fnc_getMarkerPersistent.

Please note, this function currently only fully works with markers created on the server, due to client markers being deleted when the client disconnects.

Parameters

_markerName of a marker [String]
_persistentIf true, marker will be kept consistent for JIP players [Boolean]

Returns

True if executed on the server [Boolean]

Example

_marker = createMarker ["TAG_fishingVillage", getPos TAG_fish];
[_marker, true] call CBA_fnc_setMarkerPersistent.
// Marker will be kept persistent for JIP players.
// later...
["TAG_fishingVillage", false] call CBA_fnc_setMarkerPersistent.
// Marker will no longer be kept persistent for JIP players.

Author

Sickboy

Checks if a global marker is persistent for JIP players.
Close