OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: gadolinite on 20 Dec 2004, 09:23:30

Title: ammo statement
Post by: gadolinite on 20 Dec 2004, 09:23:30
The unit ammo <magazine> operaror is throwing an unknown operator error at me.  How do you get it to work?

I am using it like this:

_ammo = plane ammo "BISCamelMG"

It still throws it when I do this:

player ammo "M16"
Title: Re:ammo statement
Post by: Baddo on 20 Dec 2004, 11:15:02
Hmm...

player ammo "m16"

works fine.

Are you sure you don't have an ammo box or anything else named "ammo"? If yes, change the name to something else or even better would be to not use names at all if possible.

That could make things go wrong.

BUT:

These work for the BIS Camel:

BISCamelMGun
BISGrenadeCamel

so it would be:

_ammo = plane ammo "BISCamelMGun"

There's an example attached, unzip it and copy the folder to

Operation Flashpoint/Users/Missions

And load

Desert Island/ammotest

in the editor. Use the radio...

 8)