Limited support
This feature is only present in Portal 2: Community Edition. SaveRestoreAPI
Functions
DeleteSave
SaveRestoreAPI.DeleteSave(name: string): void
Deletes a save
Parameter
| Name | Type | Description |
name | string | Name of the save to delete |
GetSaves
SaveRestoreAPI.GetSaves(): pano-typed.Save[]
Returns an array of save games
LoadSave
SaveRestoreAPI.LoadSave(name: string): void
Loads a save game
Parameter
| Name | Type | Description |
name | string | Name of the save. Allowed characters: A-z 0-9 _ - |
SaveGame
SaveRestoreAPI.SaveGame(name: string): void
Saves the game
Parameter
| Name | Type | Description |
name | string | Name of the save or null to generate one based on the current time |