Frictional Games Forum (read-only)
Door "spawn" - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Door "spawn" (/thread-16871.html)



Door "spawn" - tratolak - 07-10-2012

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)


RE: Door "spawn" - Your Computer - 07-10-2012

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.


RE: Door "spawn" - tratolak - 07-10-2012

(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