Hpl3:Game:scripting:function reference:helper game

From Frictional Wiki
Revision as of 15:46, 9 July 2020 by Maintenance script (talk | contribs) (Upload from wiki)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

helper_game.hps


Platform_GetName
tString Platform_GetName()




Platform_IsPS4
bool Platform_IsPS4()




Game_AutoSave
void Game_AutoSave(bool abSaveCheckpoint=true,
                   bool abDelayed=true)

Saves the current postion of the game.



CheckPoint_Setup
void CheckPoint_Setup(const tString &in asCallback="")

Sets a checkpoint for the player. If the player dies the game will be reloaded to the state it was when this was called.

  • asCallback: Function called after player has died and just before he starts again. Syntax: void F(int alNumDeathsAtCheckPoint, const tString&in asDeathSource)


Achievement_Unlock
void Achievement_Unlock(int alID)




Achievement_GetName
tString Achievement_GetName(int alID)




Achievement_GetUnlocked
bool Achievement_GetUnlocked(int alID)




Achievement_GetDisplayName
tString Achievement_GetDisplayName(int alID)




Achievement_GetDescription
tString Achievement_GetDescription(int alID)




Achievement_GetIcon
int Achievement_GetIcon(int alID)