Jump to content
Sign in to follow this  
Defender82

{Solved} See if IED is in Trigger

Recommended Posts

Hello everyone,

 

i have a problem with a trigger condition.

 

What i want:

is a trigger that detect if an IED is in triggerrange (selectet by a classname like "IEDLandSmall_F",  there are about 4-5 different classnames).

so if the IED is in the trigger the trigger is activated, if the IED blow up the trigger should be deactivated.

 

with the "thislist" command the trigger didnt work (for testing i insert a hint in the activation / deactivation )

 

oh and the trigger is for an mission that´s running on a dedicated server.

 

i allready tried this stuff:

but sadly it didnt work for me.

 

What i specialy whant is an area where players can blow up IEDs that they have disarmed elsewere and get points for that.

 

Hope someone can help me with this.

 

 

Share this post


Link to post
Share on other sites

a repeatable trigger (+ server only if you want)

 

condition for armed IED presence:

{typeOf _x == "IEDLandSmall_Remote_Ammo" && _x inArea thisTrigger} count allMines > 0

 

condition for unarmed IED presence:

count ((getpos thisTrigger nearObjects ["groundWeaponHolder", triggerSize ]) select {((magazineCargo _x) select 0) == "IEDLandSmall_Remote_Mag"}) > 0

Share this post


Link to post
Share on other sites

Thanks for your help pierremgi !

sadly the first condition didnt worked:

30652653lx.jpg

if i leave the trigger like in the picture above, nothing happens. (i add hint´s to see if the trigger is working)

 

the second one gives me an error massage:

30652715oc.jpg

 

do you have an idea why it didnt worked?

Share this post


Link to post
Share on other sites

First condition works for me on "armed" IED, like when you place an IEd (IEDLandSmall_F) in editor.

Error in second (my bad!)

count ((getpos thisTrigger nearObjects ["groundWeaponHolder", (triggerArea thisTrigger Select 0) max  (triggerArea thisTrigger Select 1) ]) select {((magazineCargo _x) select 0) == "IEDLandSmall_Remote_Mag"}) > 0

 

works on deactivated IEDLandSmall_F

 

Share this post


Link to post
Share on other sites

Thanks again pierremgi !

First condition works great, it seems i just forgot to arm the IED (did to much testing in the last days i think).

 

The second condition works now also !

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  

×