Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → cutscene trouble
cutscene trouble
2002-08-16, 12:57 PM #1
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...
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;

# ........................................................................................

end


what do i have to do to make him dissapear?

------------------
Watch the Skies.
2002-08-16, 2:31 PM #2
DestroyThing(kyle);


All is said and done.
Major projects working on:
SATNRT, JK Pistol Mod, Aliens TC, Firearms

Completed
Judgement Day (HLP), My level pack

↑ Up to the top!