Home   Help Search Login Register  

Author Topic: check ammo  (Read 550 times)

0 Members and 1 Guest are viewing this topic.

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
check ammo
« on: 03 Jan 2003, 15:58:53 »
Hi, IÂ'm making a intro to my campaign where 2 AT soldiers hides in the forest to ambush 2 tanks. The first soldiers shoot, you see the tank that blowes up, then an angle at the other soldier. He shots, and then I want, direct after the shot that you see the other tank.

Now, this is quite simple to do if you now the exact amount of time before he fires the rocket/missile/AT-thing. Now, that will take a hell of a time to check that, so what I need is to check how much ammo he has left with a command. This is what I need, that command, is there a such command? If there isnÂ't does anyone have any idea to do it in some other way?

Plz help.

Offline Ranger

  • Members
  • *
  • Hoo-ah!
Re:check ammo
« Reply #1 on: 03 Jan 2003, 18:53:52 »
Shouldn't this be in the Sounds & Cutscene section?

In any event, did you look at the ammo command?

unit ammo magazine
Operand types:
    unit: Object
    magazine: String
Type of returned value:
    Number

Description:
    Count how many shots are left for given magazine type.

Example:
    player ammo "M16"

That should probably do it.
Ranger