Armsty climbs up the ladder of OFP knowledge, he makes more advanced scripts and code for each hour... And then he falls off!
Why oh why doesn't this work?!
Early in script:
weapon2 = "M16";weapon1 = "M16"
Later in script:
_unit removeweapon weapon2
_unit removemagazines weapon1
~0.01
left1 = left1-_mags2
left2 = left2-_mags2
? _M16 == left3 : WepM16 = LEFT2; WepM16MAG = LEFT1; _unit addweapon "M16"
The magazines are removed but the gun aren't? And when the script reaches the addweapon line it says Error Invalid Number In Expression? Why? I have not defined a number as M16? WTF? I'm gonna put back unofficial OFPEC n00b in my sign again. :-\
:beat: *Gets Shot* :beat: