If you want to help us maintaining this wiki, check out our discord server: https://discord.gg/3u69jMa 

*Checkpoint

From SWRC Wiki
Revision as of 10:34, 14 May 2021 by Plasma (talk | contribs) (Created page with "<source lang="c++"> class Checkpoint extends Actor placeable hidecategories(AI,Collision,CollisionAdvanced,Karma,LightColor,Lighting,marker,Sound); function Trigger( actor...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
class Checkpoint extends Actor
	placeable
	hidecategories(AI,Collision,CollisionAdvanced,Karma,LightColor,Lighting,marker,Sound);


function Trigger( actor Other, pawn EventInstigator )
{
	GotoState('Saving');	
}

state Saving
{
Begin:
	Sleep(0.1);
	if (Level.GetLocalPlayerController().Pawn == None || Level.GetLocalPlayerController().Pawn.bIncapacitated)
		Goto('Begin');
	if ( Level.GetLocalPlayerController().CanAutoSave() )
		Level.GetLocalPlayerController().CheckpointSaveStarted();
	Sleep(0.1);
	Level.GetLocalPlayerController().AutoSave();
	GotoState('');
}


defaultproperties
{
     bHidden=True
}