Just for info:
I couldn't not make your function to work. I set it up on init.sqf like this:
No errors, no nothing, diag_log shows nothing wrong in RPT but marker is never created. It would be nice to have this function working but i won't cry for it.Code:if (isServer) then { // Setup eventHandler ["TEX_markers", { _marker = _this select 0; //String _pos = _this select 1; //Array _shape = _this select 2; //String _type = _this select 3; //String _size = _this select 4; //Array _color = _this select 5; //String _mkr = createMarker [_marker, _pos]; _marker setMarkerShape _shape; _marker setMarkerSize _size; _marker setMarkerColor _color; }] call CBA_fnc_addEventHandler; //EventHandler // Helper function TEX_fnc_createMarker = { ["TEX_markers", _this] call CBA_fnc_localEvent }; // no need to broadcast, we're already on the server } else { // Helper function TEX_fnc_createMarker = { ["TEX_markers", _this] call CBA_fnc_globalEvent }; // broadcast to execute on server }; // To create a marker: ["MarkerOne", (getmarkerpos "mkrpos"), "icon", "mil_warning", [0.5,0.5], "ColorGreen"] call TEX_fnc_createMarker;
HOME
Reply With Quote

No worries, happens to us all :P


