I made a thread about this about a month ago but it died off. I've got an OnDeath script here which should resurrect an npc tagged "Erno", who is the owner of the script, and then add him back to the party. This seems to work fine, but only for the first death - the second time he dies, his corpse just sits there, not doing an awful lot. Does anyone know what could be causing this?
My OnDeath scipt is only firing once?
Débuté par
Mr. Versipellis
, août 20 2012 02:57
#1
Posté 20 août 2012 - 02:57
#2
Posté 20 août 2012 - 07:45
Just skimming thru the code... the part that reads:
//Double-hit thing to stop the body from getting destroyed or anything
if (GetDidDie()) return;
else SetDidDie();
looks like it might be the culprit - do these functions 'unset' the data when done using it or do they leave the flag set and thus trip on second pass through?
Be well. Game on.
GM_ODA
//Double-hit thing to stop the body from getting destroyed or anything
if (GetDidDie()) return;
else SetDidDie();
looks like it might be the culprit - do these functions 'unset' the data when done using it or do they leave the flag set and thus trip on second pass through?
Be well. Game on.
GM_ODA
#3
Posté 20 août 2012 - 09:34
ehye_khandee wrote...
Just skimming thru the code... the part that reads:
//Double-hit thing to stop the body from getting destroyed or anything
if (GetDidDie()) return;
else SetDidDie();
looks like it might be the culprit - do these functions 'unset' the data when done using it or do they leave the flag set and thus trip on second pass through?
Be well. Game on.
GM_ODA
It looks like it was removed, Most likely the problem.
http://social.biowar...942323#13023659
#4
Posté 21 août 2012 - 02:11
That did the trick. Thanks!





Retour en haut






