I've got a multiplayer mission that involves getting weapons/ammo from a crate. However, since it's a large thing to put in the crate's INIT line, I made a miniture script to duplicate the effects of the init line.
The script goes like this:
this addweaponcargo ["m21", 2]
this addweaponcargo ["LAWLauncher", 2]
this addweaponcargo ["G36a", 2]
this addmagazinecargo ["m21", 8]
this addmagazinecargo ["LAWLauncher", 8]
this addmagazinecargo ["G36amag", 20]
exit
and the init line is:
this exec "ammo.sqs"
(ammo.sqs is the scriptname).
sometimes I get a message like...
"addmagazinecargo ["g36amag", ##]| typed string, expected object" or something. If I move the script around a little, it's always the last line that gives me the error. Why is this?