Jump to content
Sign in to follow this  
dummy_01

how to make trigger activate when bomb is picked up?

Recommended Posts

Hi!

I'm trying to make a trigger go off when the player pick up a pipebomb.

However, I cant make it work. :mad:

In the trigger I have as condition: player hasWeapon "PipeBomb";

and on activation: task1 setTaskState "SUCCEEDED";

Why does this not work in ArmA 2 editor?

If I change "PipeBomb" to "M16A2" and pick up a M16 rifle it works fine.

Anyone knows why?

It has occured to me that maybe the pipebomb isn't a weapon. I have tried hasAmmo and hasMagazine as well, but this doesn't work either...

Help would be much appreciated.

(And, yes, I have searched this topic before posting. I did find a post on this topic from 2007. Apparently hasWeapon "PipeBomb" worked in ArmA 1, but I can't get it to in Arma 2...).

Share this post


Link to post
Share on other sites

They are indeed magazines.

Condition: ("PipeBomb" in (magazines player))

On Act: hint "I has pipebomz!!1 xD"

Share this post


Link to post
Share on other sites

Thank you!

I tried it in my mission, and it works. :yay:

Thank you very much!

Share this post


Link to post
Share on other sites

And how i make a trigger go off when the player put a pipebomb near an object for example UH-1 called Heli?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×