Jump to content
Sign in to follow this  
Guest

Delete round fired from Arty

Recommended Posts

Guest

Hey

Got an artillery function going here, although im trying to figure out how to delete rounds that are fired from the arty unit.

Been told that an event handler might do it, although I dont really have a clue on the syntax for that...

Any help appreciated smile_o.gif

Share this post


Link to post
Share on other sites

If you add this to your guns, it should work:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">This AddEventHandler ["fired","[DeleteVehicle (NearestObject [_This Select 0,_This Select 4])"]

Share this post


Link to post
Share on other sites
Guest

Thanks UNN smile_o.gif

Give er a shot (literally tounge2.gif)

Share this post


Link to post
Share on other sites
Guest

Absolutely perfect biggrin_o.gif

heck, its so reliable you can fire the gun a the ground in front of cannon and it still deletes the round before it hits smile_o.gif

Just in case some one else wanted to use this script of yours UNN, there was one bracket near end missing -

This AddEventHandler ["fired","[DeleteVehicle (NearestObject [_This Select 0,_This Select 4])]"]

Thanks again ( no more worries about arty rounds landing 2 miles away while createVehicle'ing explosions at target area smile_o.gif

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  

×