How do I make a player trigger a game save using LoadGame?

Post » Thu Aug 21, 2014 9:58 am

I am wanting to have the player enter a trigger and cause the LoadGame script to be used.

This is the script I have tried, but doesn't work

Scriptname defaultLoadGameOnTrigger extends ObjectReference  import gameimport utilityEVENT onTriggerEnter(objectReference actronaut); 	;Debug.Trace("Trigger Hit")	if done == FALSE		while !isInMenuMode()			waitMenuMode(0.5)		endWhile		done = TRUE; 		;Debug.Trace("Loading Game")		Function LoadGame (string gamesave)gamesave.LoadGame("Save 941 - Trent  Skyrim  00.42.15")	 EndFunction	endifendEVENTEVENT onReset()	done = FALSEendEVENT

I am using SKSE and it is listed here:

http://www.creationkit.com/LoadGame_-_Game

How can I use this script correctly?

User avatar
Holli Dillon
 
Posts: 3397
Joined: Wed Jun 21, 2006 4:54 am

Return to V - Skyrim