Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: ammo statement  (Read 658 times)

0 Members and 1 Guest are viewing this topic.

gadolinite

  • Guest
ammo statement
« 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"

Offline Baddo

  • Former Staff
  • ****
  • Reservist Jaeger
Re:ammo statement
« Reply #1 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)
« Last Edit: 20 Dec 2004, 11:19:55 by Baddo »