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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...