Jump to content
Sign in to follow this  
bucket man

SImple Script for Random Uniforms etc?

Recommended Posts

So I used this little script to create Tanoan insurgents with random uniforms, vests and headgear:

 

if (isServer) then {

removeUniform _this;
_Uniforms = ["U_I_G_resistanceLeader_F","U_IG_Guerilla1_1","U_IG_Guerilla2_1","U_IG_Guerilla3_1","U_C_HunterBody_grn","U_C_Poloshirt_tricolour","U_I_C_Soldier_Camo_F","U_I_C_Soldier_Para_1_F","U_I_C_Soldier_Para_2_F","U_I_C_Soldier_Para_3_F","U_C_Man_casual_3_F","U_I_C_Soldier_Para_4_F","U_I_C_Soldier_Para_5_F","U_I_C_Soldier_Para_6_F","U_I_C_Soldier_Bandit_1_F","U_I_C_Soldier_Bandit_2_F","U_I_C_Soldier_Bandit_3_F","U_I_C_Soldier_Bandit_4_F","U_I_C_Soldier_Bandit_5_F"];
_count = count _Uniforms;
_this forceAddUniform (_Uniforms select floor random _count);

 

removeHeadgear _this;
_Headgears = ["H_Cap_blk_CMMG","H_Cap_red","H_Cap_ION","H_Cap_blk_Raven","H_Booniehat_tna_F","H_Booniehat_dirty","H_Booniehat_khk","H_Bandanna_sgg","H_Bandanna_camo","H_Bandanna_surfer_blk","H_Bandanna_surfer","H_Hat_camo","H_Shemag_tan","H_Shemag_olive"];
_count = count _Headgears;
_this addHeadGear (_Headgears select floor random _count);

 

removeVest _this;
_Vests = ["V_BandollierB_khk","V_BandollierB_oli","V_Chestrig_oli","V_TacVest_camo","V_TacVestIR_blk","V_HarnessO_brn","V_HarnessOSpec_brn","V_I_G_resistanceLeader_F","V_TacChestrig_cbr_F"];
_count = count _Vests;
_this AddVest (_Vests select floor random _count);

 

};

 

I executed it by placing this in the config.cpp:

class EventHandlers : EventHandlers {
            init = "(_this select 0) execVM ""\Tanoa_Paramilitary\fnc\Tanoa_Random.sqf""";

 

Everything worked fine until recently when the script stopped working alltogether, no uniforms except the basic CSAT uniform that comes from the baseclass my soldiers inherit. So any pointers? Would some kind soul write me a simple randomization script for uniforms and gear. I have tried different scripts from different addons but none work. Im not planning on releasing this addon, its just for my own pleasure so dont hang me for combining other peoples work to make something of my "own".

  • Like 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×