Home   Help Search Login Register  

Author Topic: Fuel/ammo quantity as condition  (Read 1168 times)

0 Members and 1 Guest are viewing this topic.

Offline HedgeHog

  • Members
  • *
Fuel/ammo quantity as condition
« on: 16 Oct 2008, 16:04:06 »
How to set fuel and/or ammo quantity as condition for a trigger?

For example, when the car's fuel tank is half full, the trigger turns true. Same for ammos.

Thx! :D

Offline Luke

  • Members
  • *
  • Thank God! The OFPEC Staff are here!
Re: Fuel/ammo quantity as condition
« Reply #1 on: 17 Oct 2008, 01:32:20 »
use the command Fuel to get the fuel on a scale of 0-1.

Using ammo will be trickier, as it only gives the number of rounds left in the current magazine.

To find the max you would need some in depth cfg knowledge.

See if the guys in the addon department could help.

Luke
Pesky Human!!
Wort Wort Wort.

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re: Fuel/ammo quantity as condition
« Reply #2 on: 18 Oct 2008, 00:03:59 »
Well, you could do a (count magazine), but it really depends on what type of weapon it is, i.e. is the ammo based on magazines or not. If it's not based on magazines, using ammo should do the trick.

Oh, and hi. :D