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 (_isMan and !_isAlive and !_isZombie) then {
if (s_player_studybody < 0) then {
s_player_studybody = player addAction [localize "str_action_studybody", "study_body.sqf",cursorTarget, 0, false, true, "",""];
};
} else {
player removeAction s_player_studybody;
s_player_studybody = -1;
};
if (_isMan and !_isAlive and !_isZombie) then {
if (s_player_studybody < 0) then {
s_player_studybody = player addAction [localize "str_action_studybody", "\z\addons\dayz_code\actions\study_body.sqf",cursorTarget, 0, false, true, "",""];
};
if (s_clothes < 0) then { _model = typeOf cursorTarget;
if( _model in ["Sniper1_DZ","Camo1_DZ"] ) then { s_clothes = player addAction [("<t color=""#336699"">" + ("Clothes") + "</t>"), "clothes.sqf", cursorTarget, 1, false, true, "",""];
};
} else {
player removeAction s_player_studybody;
s_player_studybody = -1;
} else {
player removeAction s_player_studybody;
s_player_studybody = -1;
player removeAction s_clothes;
s_clothes = -1;
};
Il frequently bump this so someone might see itMy code is almost complete. just don't know what is wrong. I've looked at it a billion times, tried it a billion times over. I am at a loss for words. Please someone help me, I've done majority of the work.
//CLOTHES
if (_isMan and !_isAlive and !_isZombie) then {
if (s_clothes < 0) then {
s_clothes = player addAction ["Take Clothes", "clothes\clothes.sqf",cursorTarget, 0, false, true, "",""];
};
} else {
player removeAction s_clothes;
s_clothes = -1;
};
player removeAction s_player_studybody;
s_player_studybody = -1;
player removeAction s_clothes;
s_clothes = -1;
if( _model in ["Sniper1_DZ","Camo1_DZ"] ) then
Yes, it does.Does it work with the additions you made?
would you mind making a short step by step on how to install this? Sorry having trouble keeping up with the additions you made to the original.Yes, it does.
I wish I was at home to make it work. Another fun thing to do tonight. This will change DayZ as we know it for any map!
/////////////////////////////////////
if (_isMan and !_isAlive and !_isZombie) then {
if (s_player_studybody < 0) then {
s_player_studybody = player addAction [localize "str_action_studybody", "study_body.sqf",cursorTarget, 0, false, true, "",""];
};
} else {
player removeAction s_player_studybody;
s_player_studybody = -1;
};
//CLOTHES
if (_isMan and !_isAlive and !_isZombie) then {
if (s_clothes < 0) then {
s_clothes = player addAction ["Take Clothes", "scripts\clothes.sqf",cursorTarget, 0, false, true, "",""];
};
} else {
player removeAction s_clothes;
s_clothes = -1;
};
player removeAction s_player_studybody;
s_player_studybody = -1;
player removeAction s_clothes;
s_clothes = -1;
This is what I've done. I'm about to try it out.
I made a clothes.sqf and put it in my scripts folder and I modified my fn_selfActions.sqf (It was previously modified so its in my dayz_code\compile\fn_selfActions.sqf)
Is this what this should look like?
Code:///////////////////////////////////// if (_isMan and !_isAlive and !_isZombie) then { if (s_player_studybody < 0) then { s_player_studybody = player addAction [localize "str_action_studybody", "study_body.sqf",cursorTarget, 0, false, true, "",""]; }; } else { player removeAction s_player_studybody; s_player_studybody = -1; }; //CLOTHES if (_isMan and !_isAlive and !_isZombie) then { if (s_clothes < 0) then { s_clothes = player addAction ["Take Clothes", "scripts\clothes.sqf",cursorTarget, 0, false, true, "",""]; }; } else { player removeAction s_clothes; s_clothes = -1; };
(Using a custom study_body.sqf and its in my main folder)
And further down:
Code:player removeAction s_player_studybody; s_player_studybody = -1; player removeAction s_clothes; s_clothes = -1;
Is this the line that I would add all the skins that I want being lootable from others?
if( _model in ["Sniper1_DZ","Camo1_DZ"] ) then { _model = "Skin_" + _model;
A few questions:
1) Will this be abusable and repeatedly looted?
2) Does this attempt to replace your skin immediately then tries to pick up the skin?
- Mostly because some of the skins on celle do not spawn on the map, not exactly sure if they have a package form or if they are simply something I'm able to add through the DB.
3) If it does replace your skin immediately, where does your current one go? - Does it get swapped or enter your bag?
i tried this but i never got an option to take clothesUnder the study body action add:
Code://CLOTHES if (_isMan and !_isAlive and !_isZombie) then { if (s_clothes < 0) then { s_clothes = player addAction ["Take Clothes", "clothes\clothes.sqf",cursorTarget, 0, false, true, "",""]; }; } else { player removeAction s_clothes; s_clothes = -1; };
Under:
Code:player removeAction s_player_studybody; s_player_studybody = -1;
Add:
Code:player removeAction s_clothes; s_clothes = -1;
And its done.
I actually made it possible to take clothes from everyone since the section:
somehow didn't work. Dunno why.Code:if( _model in ["Sniper1_DZ","Camo1_DZ"] ) then
If you manage to get it working, i recommend writhing it the other way, like:
If model = Survivor1_DZ etc then don't run it
That way ppl with custom skins wouldn't have to write down every single model to the code.
You also need to comment out your setpos.txt or you'wll be kicked by BE.
The script you wrote works, but when you take the clothes from te body it stands up and falls again.
Hope I've helped![]()
s_clothes = compile preprocessFileLineNumbers "Scripts\clothes.sqf";
// START OF CLOTHES
if (_isMan and !_isAlive and !_isZombie) then {
if (s_clothes < 0) then {
s_clothes = player addAction ["Take Clothes", "Scripts\clothes.sqf",cursorTarget, 0, false, true, "",""];
};
} else {
player removeAction s_clothes;
s_clothes = -1;
};
// END OF CLOTHES
// START OF CLOTHES
player removeAction s_clothes;
s_clothes = -1;
// END OF CLOTHES
Just to go thru this, as I seem to have followed the steps, and it still is not functioning.
In my dayz_code\compile\compiles.sqf I have added this line
Code:s_clothes = compile preprocessFileLineNumbers "Scripts\clothes.sqf";
In my dayz_code\compile\fn_selfActions.sqf I have added these lines:
Code:// START OF CLOTHES if (_isMan and !_isAlive and !_isZombie) then { if (s_clothes < 0) then { s_clothes = player addAction ["Take Clothes", "Scripts\clothes.sqf",cursorTarget, 0, false, true, "",""]; }; } else { player removeAction s_clothes; s_clothes = -1; }; // END OF CLOTHES
&
Code:// START OF CLOTHES player removeAction s_clothes; s_clothes = -1; // END OF CLOTHES
My clothes.sqf is the updated code you provided.
I'm not getting any options in the scroll menu.
Any ideas?