GetSecondsPassed not registering seconds!

Post » Mon Feb 11, 2013 7:28 am

OK, I swear I'm not imagining this.

Lately, some of my scripts that use GetSecondsPassed are counting seconds too quickly. Like, I'll set a script to trigger a messagebox every five seconds, but it'll trigger it roughly every second. Other scripts are working fine! It's nothing very complicated, things like:

float aitimer	set aitimer to ( aitimer + GetSecondsPassed )		if ( aitimer > 5 )			set reboot to ( state - 1 )			set aitimer to 0			messagebox "AI timeout"			return		endif	endif

...and the AI timeout message gets triggered far too many times, more than once every 5 secs. Anyone seen this kind of thing before, or must I be missing something somewhere?
User avatar
Rude Gurl
 
Posts: 3425
Joined: Wed Aug 08, 2007 9:17 am

Return to III - Morrowind