tratolak
Junior Member
Posts: 16
Threads: 8
Joined: Jun 2012
Reputation:
0
|
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 |
|
Your Computer
SCAN ME!
Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation:
235
|
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.
(This post was last modified: 07-10-2012, 06:54 AM by Your Computer.)
|
|
07-10-2012, 06:53 AM |
|
tratolak
Junior Member
Posts: 16
Threads: 8
Joined: Jun 2012
Reputation:
0
|
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 bro
|
|
07-10-2012, 07:09 AM |
|