Jump to content
  • 0

Added heros and Bandits


Asian Kid

Question

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;
};

 

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...