Jump to content
Sign in to follow this  
Balschoiw

Small problem with eventhandler and trigger

Recommended Posts

I´m using a trigger covering a camp area.

It´s basically supposed to detect if any of that units from Independant side is hit or killed and should start a script if that´s the case.

The trigger should be deleted though if another trigger is fired prior it.

I´m a bit stuck here as using

{_x addeventhandler ["killed", {[_this select 0, _this select 1] exec "reinforcements.sqs"}]} foreach thislist

in OnActivation of the trigger will immedeately fire the script.

How can I setup the trigger that it only fires the reinforcements script when a unit is killed or hit in that trigger-range ?

Share this post


Link to post
Share on other sites

Worked fine for me Balschoiw huh.gif I just set the trigger to detect only the Independant side in the Activation type drop down

Share this post


Link to post
Share on other sites

I blame it on sleep-deficit whistle.gif

Works like a charm now, don´t know why I couldn´t get it to work last night.

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  

×