ok, my cutscene works fine, except for one thing. i put a kyle actor in my cutscene, and he doesnt go away afterwards, he just runs around like a madman. heres the cog...
what do i have to do to make him dissapear?
------------------
Watch the Skies.
Code:
# Jedi Knight Cog Script
# This file is not made or supported by LucasArts Entertainment Co
# ========================================================================================
symbols
message startup
thing cam
thing cam1
thing cam2
thing cam3
thing cam4
thing player local
thing kyle local
template gunless=KyleBryarActor local
thing Imperial1
thing Stormie1
sound beep
end
# ========================================================================================
code
startup:
player = GetLocalPlayerThing();
playsong(8, 8, 8);
SetActorFlags(player, 0xa00000);
StopThing(player);
jkBeginCutscene();
SetActorFlags(player, 0xa00000);
StopThing(player);
Kyle = CreateThing(gunless, player);
StopThing(Kyle);
SetThingCurGeoMode(player, 0);
SetCameraFocus(0, cam3);
SetCurrentCamera(0);
playsnd(beep);
Sleep(5.0);
Print("------------------");
Sleep(5.0);
Print("------------------");
Sleep(5.0);
SetCameraFocus(0, cam4);
SetCurrentCamera(0);
Sleep(3.0);
Print("------------------");
Sleep(5.0);
Print("------------------");
Sleep(5.0);
AiSetMode(Imperial1, 0x2000);
AiSetMode(Stormie1, 0x2000);
SetCameraFocus(0, cam);
SetCurrentCamera(0);
Sleep(3.0);
Print("------------------");
Sleep(5.0);
SetCameraFocus(0, cam1);
SetCurrentCamera(0);
Print("------------------");
sleep(5.0);
Print("------------------");
sleep(5.0);
SetCameraFocus(0, cam2);
Print("------------------");
sleep(5.0);
Print("------------------");
sleep(3.0);
jkEndCutscene();
//SetCameraFocus(0, jkGetLocalPlayer());
SetCameraFocus(0, jkGetLocalPlayer());
if (jkGetSaberCam() == 1) CycleCamera();
ClearActorFlags(jkGetLocalPlayer(), 0xa00000);
SetThingCurGeoMode(player, 4);
sleep(0.1);
AutosaveGame();
//AIClearMode(imperial1, 0x2000);
AiClearMode(Stormie1, 0x2000);
sleep(5.0);
Return;
# ........................................................................................
endwhat do i have to do to make him dissapear?
------------------
Watch the Skies.