I've ran into your problem several times, Celeriac. I've tried many ways to fix this problem
. Apparently the only way to make it work is to already have the unit with the kozlice, and a Kozlice magazine on him. Then add the magazines afterwards. In your case, you were using a script to add both magazines and the weapon, you would always have to press spacebar. If you already have the weapon on him, with no magazines you still have to press spacebar. However, I've come up with a very
lengthy idea.
First, add all the magazines that your entire game will be using into the init field of a unit. Then add all the weapons possible. Then activate your script and use
removeallweapons _Unit. When your script activates, and the new weapon, and extra ammo is given to the unit. You will not need to press spacebar, plus your gun will be fully loaded. ;D It's that simple
, but depending on the number of weapons you are using, it will take some time to finish.
this addmagazine "m16"; This addweapon "m16"; This addmagazine "kozliceball"; this addweapon "kozliceball"; this addmagazine "m21"; this addweapon "m21"; Hint "Does it end?"
#removed scrolling text - this is supposed to be a helpful forum, not one full of effects....