Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
if (_build) then {
detach _object;
_object setPos [getPos _object select 0, getPos _object select 1, 0.1];
_object setDir (getDir _object);
player reveal _object;
_object setVariable ["characterID",dayz_characterID,true];
cutText [format[localize "str_build_01",_text], "PLAIN DOWN"];
dayzPublishObj = [dayz_characterID,_object,[getDir _object, getPosATL _object],_classname];
publicVariable "dayzPublishObj";
} else {
deleteVehicle _object;
player addMagazine _item;
};
characterID & dayz_characterID
they use the platyerID and save it to the database. here is a part of the script they use.
Code:if (_build) then { detach _object; _object setPos [getPos _object select 0, getPos _object select 1, 0.1]; _object setDir (getDir _object); player reveal _object; _object setVariable ["characterID",dayz_characterID,true]; cutText [format[localize "str_build_01",_text], "PLAIN DOWN"]; dayzPublishObj = [dayz_characterID,_object,[getDir _object, getPosATL _object],_classname]; publicVariable "dayzPublishObj"; } else { deleteVehicle _object; player addMagazine _item; };
you can see in the _object setVariable and dayzPublishObj they use
Code:characterID & dayz_characterID
Now the question is how is it working with the database and what changes do you need to make to get it to work the right way.
but this is a starting point for you.