Home   Help Search Login Register  

Author Topic: Using a trigger to reload?  (Read 1259 times)

0 Members and 1 Guest are viewing this topic.

MattTheJew

  • Guest
Using a trigger to reload?
« on: 12 Mar 2003, 00:25:33 »
I want to make a mission where you just have a LAW launcher.  But, having the capability of only carrying one missle around makes this somewhat difficult.  I don't want to have to put ammo crates every few meters.  Is there a way in which you could use a trigger to recognize when your one missile is gone and then re-equip you as necessary?  I'd appreciate any info.

Dark Nova

  • Guest
Re:Using a trigger to reload?
« Reply #1 on: 12 Mar 2003, 05:16:32 »
make a repeating trigger with 0 raidus

Condition:

(player ammo "LAWlauncher") < 1

Activation:

player addMagazine "LAWlauncher"

if not the player use name of unit

never run out of ammo again

MattTheJew

  • Guest
Re:Using a trigger to reload?
« Reply #2 on: 12 Mar 2003, 16:40:09 »
Good deal, it worked for the LAW thanks a lot.  I also tried it with the CarlGustav Launcher and it didn't have the same effect.  I tried different operators (e.b. > 0, < 1, <= 0 ) but it didn't do anything.  I imagine it's because you can only cary one missile at a time?

Offline toadlife

  • OFPEC Old Skool
  • Former Staff
  • ****
  • Official OFP Editing Center Toad
    • toadlife.net
Re:Using a trigger to reload?
« Reply #3 on: 12 Mar 2003, 18:25:25 »
Try this:

!("CarlGustavLauncher" in magazines player)

This should work for you. YOu could do a similar thing for the law:


!("LAWLauncher " in magazines player)
"Whenever you want information on the 'net, don't ask a question; just post a wrong answer." -- Cancer Omega.