Jump to content
Sign in to follow this  
majorexperimental

How make a trigger react on mines?

Recommended Posts

In trigger condition:

isServer && (({_x isKindOf "ShotDeployBase"} count thisList) > 0)

Must admin that I am not 100% sure re "ShotDeployBase". If not working have a peek in the config viewer

Share this post


Link to post
Share on other sites

I'm not sure a trigger will detect a mine.

this would work if you have a trigger named mytrigger and you place the code in the units init and the mine you want to check is "ATMine"

this addEventHandler ["fired",{if ( [mytrigger ,(_this select 6)] call  bis_fnc_inTrigger and (typeof (_this select 6) == "ATMine_Range_Ammo") )  then {hint "detected mine in this location"}}]

You will only get a message when the mine is placed within the trigger area.

Share this post


Link to post
Share on other sites

If each mine has a name, then when it is placed in a trigger area the trigger will fire.

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  

×