Why isn't my GetDead working right?

Post » Wed Aug 18, 2010 7:55 pm

Hey, I have this script that should only run when an NPC is dead, but it seems to just run anyway even if he isn't dead. Any ideas why it isn't working?

here it is:

float timer begin gameModeif PLWave5BOSSREF.GetDead ==1if (( timer < (40)  ) && (PLWave6REF.getDisabled ==1))set timer  to timer + getSecondsPassedreturnelseSetStage PLWaves6to10 6                                                                PLWave6REF.Enablemessage "Wave 6" ,15 endifendif

User avatar
chloe hampson
 
Posts: 3493
Joined: Sun Jun 25, 2006 12:15 pm

Post » Wed Aug 18, 2010 2:08 pm

Why not use begin http://cs.elderscrolls.com/constwiki/index.php/OnDeath to set a switch. Then when the switch is set, in the game mode you do the updates.
User avatar
Laurenn Doylee
 
Posts: 3427
Joined: Sun Dec 03, 2006 11:48 am

Post » Wed Aug 18, 2010 10:54 pm

Why not use begin http://cs.elderscrolls.com/constwiki/index.php/OnDeath to set a switch. Then when the switch is set, in the game mode you do the updates.


works great, thanks
User avatar
victoria gillis
 
Posts: 3329
Joined: Wed Jan 10, 2007 7:50 pm


Return to IV - Oblivion