I am very new to the editor, so please bear with me a bit as I am still learning. I did some searching on this issue, but i wasn't able to find a solution that worked.
I am working on a mission and as part of it, I want to have the players' weapons all removed and replaced with pistols, so for example I have this for the blufor players in the unit inits:
removeallweapons this;
this addweapon "hgun_rook40_f";
this addmagazine "16rnd_9x21_mag";
this addmagazine "16rnd_9x21_mag";
this addmagazine "16rnd_9x21_mag";
this addmagazine "16rnd_9x21_mag";
this addmagazine "16rnd_9x21_mag";
this addmagazine "16rnd_9x21_mag";
removeheadgear this;
this additem "H_Cap_brn_SERO";
this assignitem "H_Cap_brn_SERO";
this unassignitem "nvgoggles";
this removeitem "nvgoggles"
The problem is that when they die and respawn they have rifles and what not. Is there a way to fix it so that init repeats when they respawn?
Thank you.