Jump to content
Sign in to follow this  
Neviothr

Removing a unit once it fired?

Recommended Posts

Okay, so I'm making a mission where the player has to spot targets for an A-10 (AI) and laser them.

The problem that I've encountered is that when calling in A-10s form a virtual support module is that a lot of the times, the A-10s will start to target enemy AI on their own, therefore bombing areas that don't need to be.

 

My question is: is there a way to destroy/kill/remove the A-10 once it has dropped/fired a GBU? And make it so for every A-10 that spawns.

Share this post


Link to post
Share on other sites

Don't have a solution right now, but this sounds like an issue for the feedback tracker, since in my opinion the support should only do what it's meant to do and disappear afterwards. Would you mind opening a ticket with a repro mission?

Share this post


Link to post
Share on other sites

Use an eventHandler to delete the unit everytime its "Fired"?

 

This will delete it instantly, or you can set the EH to sleep for about 10 seconds then delete the unit.

this addEventHandler ["Fired", {code}];

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  

×