ammo2tgt in wac files
I can get the first one to work, I can't get the 2nd one to work, Can any one tell me why
//
if ssnarea(10000,1) and never() then
text("This is a Rocket Attack")
endif
if ssnarea(10000,2) and never() then
text("This is a Motar Attack")
endif
if ssnarea(10000,1) then
// this one DOES work
if random 4 then
ammo2tgt(ammo_ROCKET,1)
endif
if eq(rnd, 2) then
ammo2tgt(ammo_ROCKET,2)
endif
if eq(rnd, 3) then
ammo2tgt(ammo_ROCKET,3)
endif
if eq(rnd, 4) then
ammo2tgt(ammo_ROCKET,4)
endif
endif
if ssnarea(10000,2) then
// This one doesn't work
if random 4 then
ammo2tgt(ammo_ai_motar,5)
endif
if eq(rnd, 2) then
ammo2tgt(ammo_ai_motar,6)
endif
if eq(rnd, 3) then
ammo2tgt(ammo_ai_motar,7)
endif
if eq(rnd, 4) then
ammo2tgt(ammo_ai_motar,8)
endif
endif
|