Jump to content
Sign in to follow this  
akiman94

God Mode

Recommended Posts

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
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

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

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 by Aldo15

Share this post


Link to post
Share on other sites
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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×