I'm making a mission based off the movie Predator, one guy hunts down everyone else with the help of the optical camo.
One of the SF guys is a minigunner and i made a quick script so he could replenish his ammo.
minigunner addmagazine "hh_minigun"
minigunner addmagazine "hh_minigun"
minigunner addmagazine "hh_minigun"
minigunner addmagazine "hh_minigun"
minigunner addmagazine "hh_minigun"
minigunner selectweapon "hh_minigun"
and in the init.sqs
minigunner addaction ["MORE AMMO!!!!", "moreammo.sqs"]
That works, he can run around, spray bullets everywhere and when he runs out he can hit MORE AMMO!! and he gets a whole new set of minigun mags. If he gets shot though and respawns, the MORE AMMO!!! script doesnt work anymore, it does work on the minigunners corpse though.
How do i make my script apply to the newly respawned minigunner?