Forum rules - please read before posting.

Load a game with an action

I was trying to follow the manual to save and load the game using an action.

The manual suggest to use the following command:
GameObject.FindWithTag(Tags.persistentEngine).GetComponent<SaveSystem>().LoadGame (0);

But this raises the following error:
Assets/AdventureCreator/Scripts/Actions/ActionSavedGame.cs(51,23): error CS1525: Unexpected symbol `saveSys'

I'm using Load and Save, but the commands are: "SaveSaveGame" and "LoadSaveGame").

Am I doing some errors here?

Comments

  • Thanks for pointing that out - the functions were made static recently, and the manual will have to be updated.

    You simply need:

    SaveSystem.LoadGame (0);

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.