Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Door "spawn"
tratolak Offline
Junior Member

Posts: 16
Threads: 8
Joined: Jun 2012
Reputation: 0
#1
Door "spawn"

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)
(This post was last modified: 07-19-2012, 12:37 PM by tratolak.)
07-10-2012, 06:30 AM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#2
RE: Door "spawn"

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.

Tutorials: From Noob to Pro
(This post was last modified: 07-10-2012, 06:54 AM by Your Computer.)
07-10-2012, 06:53 AM
Website Find
tratolak Offline
Junior Member

Posts: 16
Threads: 8
Joined: Jun 2012
Reputation: 0
#3
RE: Door "spawn"

(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
07-10-2012, 07:09 AM
Find




Users browsing this thread: 1 Guest(s)