NeverUsedID
Well-Known Member
##### EDIT ####
I have created a script where you can take the ownership of every tent you find.
Tents you own dont get deleted from the cleanupscripts and you can repack every tent including tents from other survivors.
Look at Post #19 for a dirty tutorial. Will make a better one if i have more time.
If you have any questions just ask.
######## Edit
Hello,
i would like to make a script to take ownershhip of a tent, if the former owner is dead.
Iam rather new to dayzscripting.
Iam at the point where the "take Ownership" pops up if iam near a tent from a dead survivor.
this is the code:
Now i want to update the owner of this tent to my own ownerid.
i tried some things like for the :
_obj = _this;
_obj setVariable ["characterID",dayz_characterID,true];
but as you see, iam not sure what iam doing here
As a result i want the possibility to pack the tent and i dont want that the tent i deleted after 7 days of not using it.
I use the blissdatabase. If someone has any hint for me where i can look for the solution i would be very happy
I have created a script where you can take the ownership of every tent you find.
Tents you own dont get deleted from the cleanupscripts and you can repack every tent including tents from other survivors.
Look at Post #19 for a dirty tutorial. Will make a better one if i have more time.
If you have any questions just ask.
######## Edit
Hello,
i would like to make a script to take ownershhip of a tent, if the former owner is dead.
Iam rather new to dayzscripting.
Iam at the point where the "take Ownership" pops up if iam near a tent from a dead survivor.
this is the code:
Code:
//take Ownership tent
if(cursorTarget isKindOf "TentStorage" and _canDo and _ownerID != dayz_characterID) then {
if ((s_player_takeOwnership < 0) and (player distance cursorTarget < 3)) then {
s_player_takeOwnership = player addAction [("<t color=""#FF0000"">" + ("Take Ownership") + "</t>"), "fixes\takeOwnership.sqf",cursorTarget, 1, false, true, "",""];
};
} else {
player removeAction s_player_takeOwnership;
s_player_takeOwnership = -1;
};
Now i want to update the owner of this tent to my own ownerid.
i tried some things like for the :
_obj = _this;
_obj setVariable ["characterID",dayz_characterID,true];
but as you see, iam not sure what iam doing here
As a result i want the possibility to pack the tent and i dont want that the tent i deleted after 7 days of not using it.
I use the blissdatabase. If someone has any hint for me where i can look for the solution i would be very happy