panicsferd 25 Posted July 26, 2015 I currently know how to make it where a trigger will be triggered when a certain unit enters a certain vehicle, but now I am wondering is there a way to make it where the trigger wouldn't activate until the player/unit is out of the vehicle. 1 Share this post Link to post Share on other sites
mad_cheese 593 Posted July 26, 2015 (edited) condition: !([i]unitname[/i] in [i]vehiclename[/i]) In most cases you can set up one trigger and set it to repeat. use unitname in vehiclename (so without the "!") as a condition. OnActivation will be the code that runs when the unit boards the vehicle. OnDeact will be the code that runs when the unit exits the vehicle. Edited July 26, 2015 by Mad_Cheese 1 Share this post Link to post Share on other sites
panicsferd 25 Posted July 26, 2015 condition: !([b]unitname[/b] in [b]vehiclename[/b]) It worked and thanks a ton. I had a feeling I probably could have used the "!" to not it out, but I didn't know I needed the parenthesis in that command. Share this post Link to post Share on other sites
MarcCasey1981 10 Posted August 16, 2021 Quote make it where a trigger will be triggered when a certain unit enters a certain vehicle how do I do this? I would like an enemy group start to approach and attack a vehicle as soon as the player gets in to create a chase for my mission Thanks in advance !! Share this post Link to post Share on other sites
sarogahtyp 1108 Posted August 16, 2021 player addEventHandler ["GetInMan", { hint "Player is in vehicle"; player removeEventHandler ["GetInMan", _thisEventHandler]; }]; player addEventHandler "GetInMan" removeEventHandler _thisEventHandler -> "Since Arma 3 v.1.64 the Event Handler index is available as _thisEventHandler during Event Handler code execution" 1 Share this post Link to post Share on other sites