Home   Help Search Login Register  

Author Topic: setfuel/set ammo question  (Read 419 times)

0 Members and 1 Guest are viewing this topic.

Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
setfuel/set ammo question
« on: 27 Oct 2003, 02:52:01 »
Basically, I know how to set fuel, but not how to set ammunition. What is the syntax for the init field? I tried searching but you need to know what the syntax is to search. grr. ???
James Andrew Wilkinson 1977 - 2005 R.I.P.
"If it ain't the friggin' incoming it's the friggin' outgoing. Only difference is who gets the friggin' grease, and that ain't no friggin' difference at all."

gundernak

  • Guest
Re:setfuel/set ammo question
« Reply #1 on: 27 Oct 2003, 09:00:15 »
Hi,

I suppose you know there is an ammo throttle in the editor for every unit when you insert or edit a unit, you do not have to write anything to the init field.

After you can change it ingame with removeMagazine and addMagazine commands, and here are checks for the ammount of ammo:

1.
?(MyGuy ammo "M16" == 0):aP sidechat "Reload damn it!"

2.
someAmmo unitName

unitName is the name of the unit to check

Returns :
TorF

true indicates the unit has ammo
false indicates the unit has no ammo remaining.

You can find details at off or unoff command reference