Jump to content
Sign in to follow this  
igneous01

can you pass this/_this inside a trigger?

Recommended Posts

I have a trigger in my mission that when blufor is detected by opfor - twirlys virtual sniper script will start up and kill one of the two blufor units (sniper - spotter)

the thing is tho, currently i only have it firing on the sniper, but there might be a chance that the spotter is spotted while the sniper isnt, in which case i want to use something like _this to check for who is inside the trigger, that way i wont need to copy the trigger over the area to kill two people.

so is there a way to ex do this:

anybody present

condition

(vsniper knowsabout sniper) >= 0.05 || (vsniper knowsabout spotter) >= 0.05 && alive vsniper

on act:

vsniper action ["UseWeapon", vsniper, vsniper, 0]; hint "activated"; nul = [?_this in trigger?,vsniper] execVM "vsniper.sqf";

so basically whats happening here is the trigger checks vsniper (the guy whos hiding) knowsabout for both of the units, once it reaches a certain point, vsniper will use his weapon to simulate firing, and virtual sniper script will kill one of the guys inside it. however i cant find out a way of getting this to work (unless i copy the trigger and change it to look for the other guy) except i already have 4 triggers already in that area checking for different conditions.

maybe an FSM to check all the conditions? but then im not too sure how i will go about that either

any suggestions?

Share this post


Link to post
Share on other sites

Give the trigger a name and you can do

listOfUnitsInTriggerAreaThatPassActivationSettings = list triggerName

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  

×