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.
So after updating my Epoch server to 1.0.2.4 and putting this script back in it disabled the lock/unlock ability? =/
Working now guess i made a mistake somewhere![]()
In the fn_selfActions code find this line:
Make it this:Code:// Take clothes by Zabn @ BalotaBuddies.net if (_isMan and !_isAlive and !_isZombie and !_clothesTaken) then {
Code:if (_isMan and !_isAlive and !_isZombie and !_isAnimal and !_clothesTaken) then {
//Sleep
if(_isTent and _ownerID == dayz_characterID) then {
if ((s_player_sleep < 0) and (player distance _cursorTarget < 3)) then {
s_player_sleep = player addAction [localize "str_actions_self_sleep", "\z\addons\dayz_code\actions\player_sleep.sqf",_cursorTarget, 0, false, true, "",""];
};
} else {
player removeAction s_player_sleep;
s_player_sleep = -1;
};
_clothesTaken = cursorTarget getVariable["clothesTaken",false];
// Take clothes by Zabn @ BalotaBuddies.net
if (_isMan and !_isAlive and !_isZombie and !_isAnimal and !_clothesTaken) then {
if (s_player_clothes < 0) then {
s_player_clothes = player addAction [("<t color='#0096ff'>")+("Take Clothes")+("</t>"), "custom/player_takeClothes.sqf",cursorTarget, -10, false, true, "",""];
};
} else {
player removeAction s_player_clothes;
s_player_clothes = -1;
};
My script doesn't work
In game when i select the "Take Clothing" it pops up and says that i can't find the script - but the funny thing is, that it says the file is located at "custom/player_takeClothes.sqf", and the file is at that place, but it doesn't work.
I don't really understand why, because it's located at the right place, the error message ingame and actully see the script in the error message, but i wont work.
Here's the script fron fn_selfActions.sqf
Code://Sleep if(_isTent and _ownerID == dayz_characterID) then { if ((s_player_sleep < 0) and (player distance _cursorTarget < 3)) then { s_player_sleep = player addAction [localize "str_actions_self_sleep", "\z\addons\dayz_code\actions\player_sleep.sqf",_cursorTarget, 0, false, true, "",""]; }; } else { player removeAction s_player_sleep; s_player_sleep = -1; }; _clothesTaken = cursorTarget getVariable["clothesTaken",false]; // Take clothes by Zabn @ BalotaBuddies.net if (_isMan and !_isAlive and !_isZombie and !_isAnimal and !_clothesTaken) then { if (s_player_clothes < 0) then { s_player_clothes = player addAction [("<t color='#0096ff'>")+("Take Clothes")+("</t>"), "custom/player_takeClothes.sqf",cursorTarget, -10, false, true, "",""]; }; } else { player removeAction s_player_clothes; s_player_clothes = -1; };
The fn_selfActions.sqf is in my custom folder, and the player_takeClothes.sqf is also in that folder.
What to do ?..
No problemThx for the help.
Can't belive it's a \ instead of / that's the problem haha - big thx !