mirror of
https://github.com/valmojr/armatak.git
synced 2026-06-13 19:53:29 +00:00
ADded handling for multiplayer or singleplayer sessions on init function
This commit is contained in:
@@ -1,12 +0,0 @@
|
||||
params["_unit"];
|
||||
|
||||
private _uid_string = "armatak" callExtension ["ManageGeoObject/postGeoObject",[_unit] call armatak_fnc_extract_info];
|
||||
|
||||
private _uid_string = _uid_string select 0;
|
||||
|
||||
if (_uid_string != "") then {
|
||||
_uid_string = (_uid_string splitString '"') select 3;
|
||||
_unit setVariable ["_atak_uid",_uid_string, true];
|
||||
};
|
||||
|
||||
_uid_string
|
||||
@@ -1,14 +0,0 @@
|
||||
params["_unit"];
|
||||
|
||||
private _result = "armatak" callExtension ["ManageGeoObject/putGeoObject",[_unit] call armatak_fnc_extract_info];
|
||||
|
||||
private _uid_string = _result select 0;
|
||||
|
||||
if (_uid_string != "") then {
|
||||
_uid_string = (_uid_string splitString '"') select 3;
|
||||
_unit setVariable ["_atak_uid",_uid_string, true];
|
||||
} else {
|
||||
_uid_string = "ERROR: " + _result joinString " | ";
|
||||
};
|
||||
|
||||
_uid_string
|
||||
Reference in New Issue
Block a user