A.I. ressurection - by norbik
norbik on 26/9/2005 at 22:07
Do you know, what can i ressurect dead A.I. in T3Ed?
When i create script to change healtstate dead to alive, it doesn´t work.
A.I. is still dead.
Can you help me?
ascottk on 27/9/2005 at 01:25
Fake the death (HealthState_Disabled). Or do the possum routine - Look at the GamallFreezy script. It looks like there's a [STATE_PLAYING_POSSUM] property.
Spitter on 27/9/2005 at 04:33
Resurrect.
ascottk on 27/9/2005 at 05:03
Quote Posted by Spitter
Resurrect.
:confused: oh, typo . . .
norbik on 27/9/2005 at 19:25
Sorry, i´m not englishman - look at my location. I expect slightly more toleration.
Krypt on 27/9/2005 at 19:56
I'm pretty sure you can resurrect an AI, but there's more than one property you need to set for it to work correctly. I don't remember what ones, unfortunately. I'd try setting the hitpoints back to max first, and if that doesn't work scour through the properties to find any others that might relate to health and mess with those too.
ProjectX on 2/10/2005 at 17:53
do you want them to come back when you've killed them?
If so, don't actually let them die, every time they take damage add it to a flag and play the relevant sounds and anims, but put their health up by that much again. Then when the flag = x, fake the death of the ai and make it play possum. Then x seconds later have the ai exit possum mode and reset the flag.
norbik on 3/10/2005 at 19:37
Although I understood only something about possum and flags and other matters and i´m going to try it. But I need resurrect AI after condition: When I´m frobbed by player. Is it possible and how should I write the script?