akiman94 10 Posted January 13, 2011 I opened one mission in OFP Resistance Campaign, and I shoot Guba but he won't fall. Can anybody explain me how can I create in editor, that somebody can't die? Share this post Link to post Share on other sites
giallustio 770 Posted January 13, 2011 In the init of the unit put this: this allowdamage false; Share this post Link to post Share on other sites
rellikki 7 Posted January 13, 2011 this allowdamage false; That's an Arma command and won't work in OFP. Try this instead: this addEventHandler ["Hit", {(_this select 0) setDamage 0}] Share this post Link to post Share on other sites
JdB 151 Posted January 13, 2011 No method of achieving godmode is perfect in OFP, Rellikki's way works, but only for infantry fighting infantry. If you're hit with any kind of cannon twice, you're still dead. If you're in a vehicle, you will still die if you put that code in the init field of a vehicle that already contains crew by default. You need to place an empty vehicle, use the code on that, then place the crewmembers, use code to put them into the tank, and give them the code as well. In that case, you are completely invulnerable.* * I tested it by having 4 T80s fire at my M60 at the same time, and I survived, so I assume nothing can destroy it, although the ultimate test would be LGBs :D Share this post Link to post Share on other sites
Aldo15 11 Posted January 13, 2011 (edited) for the unit to be indestructible you have to do this: call to unity "Guba"(example), and the unit init write this exec "immortal.SQS" in notepad you should write: #Start Guba setDammage 0 ~0.1 goto "Start" This example is safe, the unit will never die. Hope that help ~Aldo Edited January 13, 2011 by Aldo15 Share this post Link to post Share on other sites
giallustio 770 Posted January 14, 2011 That's an Arma command and won't work in OFP.Try this instead: this addEventHandler ["Hit", {(_this select 0) setDamage 0}] Sorry FPDR I didn't read "OFP", my fault. Share this post Link to post Share on other sites
akiman94 10 Posted January 15, 2011 No problemo! I also make missions for Arma, so it will help. Guys, thank you very much for help. I can now finally make my mission. :-) :-D Share this post Link to post Share on other sites