OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: OFP Guy on 20 Mar 2003, 01:43:11

Title: Making it impossible to die
Post by: OFP Guy on 20 Mar 2003, 01:43:11
How can I make it so that a specified unit cannot die?

Thanks for any answers
Title: Re:Making it impossible to die
Post by: evil on 23 Mar 2003, 01:13:08
A little spinoff of 1 of my attempted scrips might be able to help you.  I was able to bring destroyed vehicles back in perfect order.  I'm sure i can prevent them from being destroyed completely.  Unfortunatly, I've had minimal success with infantry.  I'll be back with the script shortly!
Title: Re:Making it impossible to die
Post by: evil on 23 Mar 2003, 02:10:09
OK I'm back.  I pretty much redid the whole script.  Now it works on anything!  Although there are some issues with easily destryed vehicles looking screwed up... But they still work ok.  Includes a sample mission and so much information on the script almost anyone can edit it.
Title: Re:Making it impossible to die
Post by: red devil on 25 Mar 2003, 19:02:24
or u cud just put this in the intel field  :o

this addeventhandler ["hit", {_this select 0 setdammage 0}]