Hi, I want to morph a players skin live in game, similar to the way it was done in origins. So if a player reaches a certain humanity level there default_model is changed.
This is what I have soo far but it doesn't work:
// Skin Changer
Private ["_humanity"];
waitUntil {!isNil ("PVDZE_plr_LoginRecord")}; // Check that player is logged in
_humanity = (player getVariable["humanity",0]); // Get and set humanity
if((_humanity) <= -15000) then {
diag_log "You are a level 3 Bandit - Your default skin has been changed";
//Overridden default skin here
DefaultModel = "TK_Soldier_Spotter_EP1";
}; // Level 3 Bandit
if((_humanity) >= -14999) and ((_humanity) <= -10000) then {
diag_log "You are a level 2 Bandit - Your default skin has been changed";
//Overridden default skin here
DefaultModel = "TK_INS_Soldier_AAT_EP1";
}; // Level 2 Bandit
if((_humanity) >= -9999) and ((_humanity) <= -1) then {
diag_log "You are a level 1 Bandit - Your default skin has been changed";
//Overridden default skin here
DefaultModel = "TK_CIV_Takistani02_EP1";
}; // Level 1 Bandit
if((_humanity) >= 15000) then {
diag_log "You are a level 3 Hero - Your default skin has been changed";
//Overridden default skin here
DefaultModel = "FR_Assault_R";
}; // Level 3 Hero
if((_humanity) <= 14999) and ((_humanity) >= 10000) then {
diag_log "You are a level 2 Hero - Your default skin has been changed";
//Overridden default skin here
DefaultModel = "USMC_Soldier_Medic";
}; // Level 2 Hero
if((_humanity) <= 9999) and ((_humanity) >= 0) then {
diag_log "You are a level 1 Hero - Your default skin has been changed";
//Overridden default skin here
DefaultModel = "CDF_Soldier_Light";
}; // Level 1 Hero
Question
therisingdead
Hi, I want to morph a players skin live in game, similar to the way it was done in origins. So if a player reaches a certain humanity level there default_model is changed.
This is what I have soo far but it doesn't work:
Link to comment
Share on other sites
12 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