Jump to content
  • 0

Super nooby question


Turtle

Question

I'm using this take clothes script and I need to know a few basic things that might possibly mess it up because I want to edit it

 

For this code:

if( _model in ["RU_Policeman_DZ","Priest_DZ","Haris_Press_EP1_DZ","Pilot_EP1_DZ","Functionary1_EP1_DZ","Rocker3_DZ","Rocker1_DZ","Rocker2_DZ","Rocker4_DZ","BanditW1_DZ","BanditW2_DZ","SurvivorW2_DZ","SurvivorW3_DZ","SurvivorWcombat_DZ","SurvivorWdesert_DZ","SurvivorWurban_DZ","SurvivorWpink_DZ","Rocket_DZ","Soldier1_DZ","Sniper1_DZ","CZ_Soldier_Sniper_EP1_DZ","Camo1_DZ","FR_OHara_DZ","FR_Rodriguez_DZ","Graves Light DZ","CZ_Special_Forces_GL_DES_EP1_DZ","Soldier_Bodyguard_AA12_PMC_DZ","Soldier_Sniper_PMC_DZ","Soldier_Sniper_PMC_DZ","Bandit1_DZ","Bandit2_DZ","GUE_Soldier_MG_DZ","GUE_Soldier_Sniper_DZ","GUE_Soldier_Crew_DZ","GUE_Soldier_CO_DZ","GUE_Soldier_2_DZ","GUE_Commander_DZ","Ins_Soldier_GL_DZ","TK_INS_Soldier_EP1_DZ","TK_INS_Soldier_EP1_DZ","TK_INS_Warlord_EP1_DZ","TK_INS_Warlord_EP1_DZ"] ) then { _model = "Skin_" + _model;
	_rnd = random 1;

to make it easier to edit and look through could I just make it look like this and it wouldn't do anything to mess the script up?

private["_body","_result"];
    _body = _this select 3;
    _model = typeOf _body;
if( _model in [
"RU_Policeman_DZ",
"Priest_DZ",
"Haris_Press_EP1_DZ",
"Pilot_EP1_DZ",
"Functionary1_EP1_DZ",
"Rocker3_DZ",
"Rocker1_DZ",
"Rocker2_DZ",
"Rocker4_DZ",
"BanditW1_DZ",
"BanditW2_DZ",
"SurvivorW2_DZ",
"SurvivorW3_DZ",
"SurvivorWcombat_DZ",
"SurvivorWdesert_DZ",
"SurvivorWurban_DZ",
"SurvivorWpink_DZ",
"Rocket_DZ",
"Soldier1_DZ",
"Sniper1_DZ",
"CZ_Soldier_Sniper_EP1_DZ",
"Camo1_DZ",
"FR_OHara_DZ",
"FR_Rodriguez_DZ",
"Graves Light DZ",
"CZ_Special_Forces_GL_DES_EP1_DZ",
"Soldier_Bodyguard_AA12_PMC_DZ",
"Soldier_Sniper_PMC_DZ",
"Bandit1_DZ",
"Bandit2_DZ",
"GUE_Soldier_MG_DZ",
"GUE_Soldier_Sniper_DZ",
"GUE_Soldier_Crew_DZ",
"GUE_Soldier_CO_DZ",
"GUE_Soldier_2_DZ",
"GUE_Commander_DZ",
"Ins_Soldier_GL_DZ",
"TK_INS_Soldier_EP1_DZ",
"TK_INS_Warlord_EP1_DZ",
"Survivor2_DZ",
"Soldier_TL_PMC_DZ",
"Graves_Light_DZ"
] ) then { _model = "Skin_" + _model;
};
Link to comment
Share on other sites

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