Jump to content
  • 0

Adding hero and bandits skins


Asian Kid

Question

I was thinking and I made this up and can anyone see if I made mistakes or just this wont work at all.

Add to init

newspawn = compile preprocessFileLineNumbers "spawn.sqf";
waitUntil {!isNil ("PVDZE_plr_LoginRecord")};
if (dayzPlayerLogin2 select 2) then
{
    player spawn newspawn;
};

spawn.sqf
 

_humanity = player getVariable ["humanity",0];
//Bandit\\
if (_humanity < -2500) then {
[dayz_playerUID,dayz_characterID,'GUE_Soldier_2_DZ'] spawn player_humanityMorph;
reload player;
};
//Survivor\\
if (_humanity < 5000 and _humanity > -2500) then {
[dayz_playerUID,dayz_characterID,'Rocker4_DZ'] spawn player_humanityMorph;
reload player;
};
//Hero\\
if (_humanity > 5000) then {
[dayz_playerUID,dayz_characterID,'Haris_Press_EP1_DZ'] spawn player_humanityMorph;
reload player;
};
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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...