Turtle Posted February 8, 2014 Report Share Posted February 8, 2014 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 More sharing options...
0 FoamysWorld Posted February 8, 2014 Report Share Posted February 8, 2014 Should be fine, ";" is what tells sqf to enter a line break. Not sure if you are just asking if that format works or if that code snippet is ok, format will work but if this is the code snippet you are missing some stuff at the end Make sure to close your then statement with }; Link to comment Share on other sites More sharing options...
0 Turtle Posted February 8, 2014 Author Report Share Posted February 8, 2014 ok I edited it, does it look right now? Link to comment Share on other sites More sharing options...
0 Defent Posted February 8, 2014 Report Share Posted February 8, 2014 Yes, I believe that works and you can use the BIS_fnc_selectRandom if you want to return any of those values. Edit: If it doesnt work, try putting each value in brackets. Link to comment Share on other sites More sharing options...
Question
Turtle
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:
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?
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 accountSign in
Already have an account? Sign in here.
Sign In Now