This is for fresh spawn only so people's skins wont change if they humanity changes later in game. I am not sure if this is right haven't testing. Can anyone help?
Add to init
p2_newspawn = compile preprocessFileLineNumbers "humanity.sqf";
waitUntil {!isNil ("dayzLoginRecord")};
if (dayzPlayerLogin2 select 2) then
{
player spawn p2_newspawn;
};
Call the script humanity.sqf and place in main mission pbo directory
//Bandit\\
if (_humanity < -2500) then {
[dayz_playerUID,dayz_characterID,'Bandit1_DZ'] spawn player_humanityMorph;
reload player;
};
//Survivor\\
if (_humanity < 5000 and _humanity > -2500) then {
[dayz_playerUID,dayz_characterID,'Survivor2_DZ'] spawn player_humanityMorph;
reload player;
};
//Hero\\
if (_humanity > 5000) then {
[dayz_playerUID,dayz_characterID,'Hero1_DZ '] spawn player_humanityMorph;
reload player;
};
Question
Asian Kid
This is for fresh spawn only so people's skins wont change if they humanity changes later in game. I am not sure if this is right haven't testing. Can anyone help?
Add to init
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now