OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: xCIA_BlackThorn on 23 May 2005, 02:45:16

Title: Making an Object Invinsible...
Post by: xCIA_BlackThorn on 23 May 2005, 02:45:16
I have in the Condition of a Trigger:  GetDammage StaticNV > 0.1
                              On Activation:   StaticNV SetDammage 0

But this is not working because when i shoot the StaticNV, it is destroyed and does not regain its health as planned. Maybe I am going about this the wrong way?

Thanks in advance.
Title: Re:Making an Object Invinsible...
Post by: pazuzu on 23 May 2005, 04:24:03
What's StaticNV?

There is a toughunit script for soldiers at the editors depot...
Title: Re:Making an Object Invinsible...
Post by: bedges on 23 May 2005, 09:47:12
a trigger may not be fast enough to catch the bullet as it were. i'd suggest adding a 'hit' event handler (http://www.ofpec.com/editors/resource_view.php?id=543) to StaticNV, which might be a wee bit faster.

EDIT - oh, and it's 'invincible' :P
Title: Re:Making an Object Invinsible...
Post by: macguba on 23 May 2005, 10:03:34
There have been a couple of threads on this in the last few weeks, try the forum search function.   ;)