Ok, before i tell you what's wrong i wanna tell you that i know some things are missing. like the stopsound(music, 1.0); thing and all that. BUT IT MESSES UP BEFORE IT EVEN GETS THERE! It goes to 'camera1', but DOESN'T play the sound, it sleeps for a few seconds, then it plays 'music', but the camera DOESN'T CHANGE! then, after the 20 sec delay, the health and ammo things come back on screen, BUT CAMERA DOESN'T CHANGE AGIAN! if u hit F1, it will take u to external view of kyle, but when u hit F1 agian to go to 1st person view it takes u back to 'camera1'! WTF! i can't figure it out. i've tried so many things, somebody plz help me!
Code:
# Jedi Knight Cog Script # # kwdream.cog # # Camera/sound sequence for the dream in the begining of Kell's Water Ch. 1 # # [SM SIth Lord] # # This cog is not made or distributed by LucasArts Entertainment Co. symbols message startup message activated surface betaswitch thing dcamera1 thing dcamera2 thing dcamera3 sound introsound=-1 sound music=-1 end # ======================================================================================== code startup: player = GetLocalPlayerThing(); Return; activated: SetActorFlags(player, 0xa00000); Sleep(0.5); AddDynamicTint(player, 1.0, 1.0, 1.0); SetCurrentCamera(0); SetCameraFocus(0, dcamera1); Sleep(0.5); PlaySoundThing(introsound, player, 1.0, -1, -1, 0x80); Sleep(GetSoundLen(introsound)); SecCameraFocus(0, dcamera2); PlaySoundThing(music, player, 1.0, -1, -1, 0x81); Sleep(20); SecCameraFocus(0, dcamera3); Sleep(3); ClearActorFlags(player, 0xa00000); SecCameraFocus(0, player); Return; end