Piece of code crashing Oblivion

Post » Wed Aug 31, 2011 4:31 am

For reasons I do not understand, the following piece of code crashes Oblivion. It's very similar to other code that I have written, and I can't find any documentation that would explain why. It's not a big deal if this code is included or not as it is a bell & whistle feature, but if anyone could shed some light on this, it would be much appreciated.

	; target is talking modifier	if tActor != PlayerRef		if tActor.isTalking == 1			let vSoundBonus := vSoundBonus + SDRIniQ.vTalkPenalty		endif	endif


note that all variables are accounted for and the script compiles with no errors or warnings with this code in it using CSE.
User avatar
Melis Hristina
 
Posts: 3509
Joined: Sat Jun 17, 2006 10:36 pm

Post » Wed Aug 31, 2011 10:29 am

Most of it looks pretty straightforward, I am going to guess the isTalking check is what is crashing the game?
User avatar
Kara Payne
 
Posts: 3415
Joined: Thu Oct 26, 2006 12:47 am

Post » Wed Aug 31, 2011 2:03 am

That's the weird thing though, I've used "isTalking without incident before. It's also used in another part of the code in a different script.
User avatar
XPidgex Jefferson
 
Posts: 3398
Joined: Fri Sep 08, 2006 4:39 pm


Return to IV - Oblivion