Deathknight0897 1 Posted January 18, 2015 Hey so I have run into a small issue I am trying to add cms medical gear to units on re spawn there normal load-outs are done by there unit I just want to add the medical supplies I need to add this to the average bod and another for the medics and one for flight. any help is appreciated i have searched many gear scripts however most require me to manually do the whole load out which isnt what i need to do i tried to re-purpose a script however i had a CTD so im now here on the forums :D Standard (uniformContainer this) addItemCargoGlobal ["cse_bandage_basic", 5]; (uniformContainer this) addItemCargoGlobal ["cse_tourniquet", 3]; (uniformContainer this) addItemCargoGlobal ["cse_morphine",1]; Flight Standard (uniformContainer this) addItemCargoGlobal ["cse_bandage_basic", 10]; (uniformContainer this) addItemCargoGlobal ["cse_tourniquet", 5]; (uniformContainer this) addItemCargoGlobal ["cse_morphine",1]; CTM (unitBackpack this) addItemCargoGlobal ["cse_bandage_basic", 15]; (unitBackpack this) addItemCargoGlobal ["cse_bandageElastic", 15]; (unitBackpack this) addItemCargoGlobal ["cse_packing_bandage", 15]; (unitBackpack this) addItemCargoGlobal ["cse_tourniquet", 5]; (unitBackpack this) addItemCargoGlobal ["cse_blood_iv", 5]; (unitBackpack this) addItemCargoGlobal ["cse_morphine", 10]; (unitBackpack this) addItemCargoGlobal ["cse_epinephrine", 10]; (unitBackpack this) addItemCargoGlobal ["cse_personal_aid_kit", 5]; (unitBackpack this) addItemCargoGlobal ["cse_nasopharyngeal_tube", 5]; CMT (unitBackpack this) addItemCargoGlobal ["cse_bandage_basic", 20]; (unitBackpack this) addItemCargoGlobal ["cse_bandageElastic", 20]; (unitBackpack this) addItemCargoGlobal ["cse_packing_bandage", 20]; (unitBackpack this) addItemCargoGlobal ["cse_tourniquet", 5]; (unitBackpack this) addItemCargoGlobal ["cse_blood_iv", 5]; (unitBackpack this) addItemCargoGlobal ["cse_morphine", 20]; (unitBackpack this) addItemCargoGlobal ["cse_epinephrine", 20]; (unitBackpack this) addItemCargoGlobal ["cse_personal_aid_kit", 5]; (unitBackpack this) addItemCargoGlobal ["cse_nasopharyngeal_tube", 5]; Share this post Link to post Share on other sites
R3vo 2654 Posted January 18, 2015 Hey so I have run into a small issue I am trying to add cms medical gear to units on re spawn there normal load-outs are done by there unit I just want to add the medical supplies I need to add this to the average bod and another for the medics and one for flight.any help is appreciated i have searched many gear scripts however most require me to manually do the whole load out which isnt what i need to do i tried to re-purpose a script however i had a CTD so im now here on the forums :D Standard (uniformContainer this) addItemCargoGlobal ["cse_bandage_basic", 5]; (uniformContainer this) addItemCargoGlobal ["cse_tourniquet", 3]; (uniformContainer this) addItemCargoGlobal ["cse_morphine",1]; Flight Standard (uniformContainer this) addItemCargoGlobal ["cse_bandage_basic", 10]; (uniformContainer this) addItemCargoGlobal ["cse_tourniquet", 5]; (uniformContainer this) addItemCargoGlobal ["cse_morphine",1]; CTM (unitBackpack this) addItemCargoGlobal ["cse_bandage_basic", 15]; (unitBackpack this) addItemCargoGlobal ["cse_bandageElastic", 15]; (unitBackpack this) addItemCargoGlobal ["cse_packing_bandage", 15]; (unitBackpack this) addItemCargoGlobal ["cse_tourniquet", 5]; (unitBackpack this) addItemCargoGlobal ["cse_blood_iv", 5]; (unitBackpack this) addItemCargoGlobal ["cse_morphine", 10]; (unitBackpack this) addItemCargoGlobal ["cse_epinephrine", 10]; (unitBackpack this) addItemCargoGlobal ["cse_personal_aid_kit", 5]; (unitBackpack this) addItemCargoGlobal ["cse_nasopharyngeal_tube", 5]; CMT (unitBackpack this) addItemCargoGlobal ["cse_bandage_basic", 20]; (unitBackpack this) addItemCargoGlobal ["cse_bandageElastic", 20]; (unitBackpack this) addItemCargoGlobal ["cse_packing_bandage", 20]; (unitBackpack this) addItemCargoGlobal ["cse_tourniquet", 5]; (unitBackpack this) addItemCargoGlobal ["cse_blood_iv", 5]; (unitBackpack this) addItemCargoGlobal ["cse_morphine", 20]; (unitBackpack this) addItemCargoGlobal ["cse_epinephrine", 20]; (unitBackpack this) addItemCargoGlobal ["cse_personal_aid_kit", 5]; (unitBackpack this) addItemCargoGlobal ["cse_nasopharyngeal_tube", 5]; unit addEventHandler ["respawn", { (uniformContainer (_this select 0)) addItemCargoGlobal ["cse_bandage_basic", 5]; (uniformContainer (_this select 0)) addItemCargoGlobal ["cse_tourniquet", 3]; (uniformContainer (_this select 0)) addItemCargoGlobal ["cse_morphine",1]; }]; You could try something like this, however, I've not yet worked with evenHandlers myself. I'm not quite sure if they get deleted after a unit has respawned. Share this post Link to post Share on other sites
jshock 513 Posted January 18, 2015 I'm not quite sure if they get deleted after a unit has respawned. It doesn't get deleted. Share this post Link to post Share on other sites