bohemi 10 Posted August 2, 2011 What do I have to do to make an unit (helicopter) undestroyable? Example: The chopper is flying from waypoint "a" to waypoint "b", and in that poin then it take the impact of an aa missile fired from an enemy unit on the ground. I want the chopper to keep'on flying to the next waypoint without any dammage. Thank's any help :j: Share this post Link to post Share on other sites
celery 8 Posted August 2, 2011 this addEventHandler ["HandleDamage",{}] Share this post Link to post Share on other sites
rellikki 7 Posted August 2, 2011 this addEventHandler ["HandleDamage",{}] That won't work. It's an Arma 2 event handler. The following should work in OFP: this addEventHandler ["Hit",{(_this select 0) setDamage 0}] Share this post Link to post Share on other sites
celery 8 Posted August 2, 2011 Oh right, didn't read the forum title. :o Share this post Link to post Share on other sites
bohemi 10 Posted August 2, 2011 Thanks you both anyway, Im gonna try it. Share this post Link to post Share on other sites
nikiller 18 Posted August 2, 2011 (edited) What do I have to do to make an unit (helicopter) undestroyable? Example: The chopper is flying from waypoint "a" to waypoint "b", and in that poin then it take the impact of an aa missile fired from an enemy unit on the ground. I want the chopper to keep'on flying to the next waypoint without any dammage.Thank's any help :j: here's a script I allready posted (search engine is your firend) This script will make the unit nearly invulnerable SP/MP compatible.. Ho and if you need that the chopper invulnerable I suggest you to execute this script also for the pilot and the gunner. ;************************************* ;Invulnerable Script by Nikiller v0.9b ;Make a unit invulnerable ;NOTE: it's 95% reliable ;contact: nikillerofp@hotmail.fr ;[unitName] exec "hard_to_kill.sqs" ;************************************* _u = _this select 0 if (local _u) then {} else {goto "ende"} _u addeventhandler [{dammaged},{(_this select 0) setdamage (damage (_this select 0)-(_this select 2))}] _u addeventhandler [{hit},{(_this select 0) setdamage (damage (_this select 0)-(_this select 2))}] #ende exit cya. Damn I'm very drunk I need to piss (again) :803:. Nikiller. Edited August 2, 2011 by Nikiller Share this post Link to post Share on other sites
Incubus 10 Posted August 3, 2011 Damn I'm very drunk I need to piss (again) :803:. :D come on niki, miss u from server. dont drink but play!! this script looks good, i need it in my "Melting helmets" mission damn still not working the nukescript well :confused: Share this post Link to post Share on other sites
nikiller 18 Posted August 3, 2011 hi, :D come on niki, miss u from server.dont drink but play!! this script looks good, i need it in my "Melting helmets" mission damn still not working the nukescript well :confused: Hey Inc, you miss me too guys but I didn't have lot of time to play lately. I'll try to play on the server soon as possible :) Looking forward for your next mission. You know my mail adress if you need some help ;) For the nuke script here's a demo. DEMO LINK cya. Nikiller. Share this post Link to post Share on other sites
bohemi 10 Posted August 5, 2011 I've tried the two options and both are working properly . I hope everybody will enloy my next mission "The Capture". Thanks a lot. :bounce3: Share this post Link to post Share on other sites