Well there are many ways to do it , but the one i can
think about off the top of my head is :
add a event condition to your "board gun" trigger
for example, create board_gun1_on event ,then add in some earlier
trigger a event command that will set this event to on.
so you will have on your trigger conditions:
1.entities (check if the gun is inhabited or not)
2.event (checks if the new event you created is on or not)
on the commands tab :
board (vehicle tag ,enemy entity tag, zone)
delay 40
if /entities (another check after 40 seconds to see if the gun is inhabited.)
event (-) board_gun1_on (turn off the event, so the conditions of the trigger
wont be meet)
and that's about it ,of course you can add more checks and do it in
other ways but this works as well , the only downside is that
it counts to 40 after the gun is not inhabited and then if someone
replace the gunner place and you kill him ,the timer keep counting ,
so if you kill him exactly when it's reaches 0 it will turn the trigger off,
so that's why additional check will help if you insist on the precession .
|