Guest Posted March 2, 2007 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 Share this post Link to post Share on other sites
UNN 0 Posted March 3, 2007 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 Posted March 3, 2007 Thanks UNN Give er a shot (literally ) Share this post Link to post Share on other sites
Guest Posted March 3, 2007 Absolutely perfect 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 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 Share this post Link to post Share on other sites