Frictional Games Forum (read-only)

Full Version: Door "spawn"
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
When a zombie destroys a door and i want to repair it or rather "spawn" it what shoud i do?
(SetEntityActive or SetPropHealth doesnt work)
When an entity "breaks," it gets replaced with another entity. This other entity normally assumes different properties. Therefore resetting or increasing the health of the entity "doesn't work" (in reality it is working, it's just applying it to the current entity that took the place of the previous entity). You can probably get away with disabling the "broken" entity and dynamically creating a new door at a script area.
(07-10-2012, 06:53 AM)Your Computer Wrote: [ -> ]When an entity "breaks," it gets replaced with another entity. This other entity normally assumes different properties. Therefore resetting or increasing the health of the entity "doesn't work" (in reality it is working, it's just applying it to the current entity that took the place of the previous entity). You can probably get away with disabling the "broken" entity and dynamically creating a new door at a script area.
Thanks again broSmile