Apocca 10 Posted June 26, 2009 I have a little problem. I made a gunship by attaching some cannons and grenade launchers to the C-130, but they run out of ammo and also happen to hit themselves once in a while. Tried attaching a repair truck to the inside of the plane, but it cant repair while flying sadly. How do i make the cannons attached to it invincible along with the plane itself? Same goes for the ammo. Ammo trucks wont rearm while flying, so the plane is forced to land which dosnt really work with the rather horrid pilot AI driving into trees. How do i make sure none of the cannons never run out? Share this post Link to post Share on other sites
Bloodofthedragon 0 Posted June 26, 2009 Not sure about the ammo but for your plane you could try "unitname allowdamage false" in the init line. minus the "". Share this post Link to post Share on other sites
Apocca 10 Posted June 26, 2009 Ah, sweet. Never knew that command! Just need the ammo now. Share this post Link to post Share on other sites
callaway 0 Posted June 26, 2009 Maybe a trigger that constantly rearms using the addMagazine command? Just have the trigger run repeatedly. Possibly there is a better way. Share this post Link to post Share on other sites
trini scourge 1 Posted June 26, 2009 Try: [i]unitname[/i] addEventHandler ["fired",{(_this select 0) setvehicleammo 1}] Share this post Link to post Share on other sites