OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: MattTheJew 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.
-
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
-
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?
-
Try this:
!("CarlGustavLauncher" in magazines player)
This should work for you. YOu could do a similar thing for the law:
!("LAWLauncher " in magazines player)