Skip to reading
GDScript Programming & Godot

PCA helper functions: the full native reference

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView PDF page
On this page

PCAScriptBase supplies 78 public non-action helpers in this build. They sit alongside Godot’s native functions and the 206 gameplay wrappers in the next section. Signatures below come from the actual base script; names and parameter order are case-sensitive.

A call prefixed with await can suspend until its coroutine/signal work finishes. A synchronous helper can be called normally. Native GDScript has no PCA Script-style when/end syntax or try/catch block.

The examples name records in the tutorial workshop. Replace them with your own IDs. A helper returning a proxy is not returning the underlying Node, and a diagnostic helper is not an exception system.

Execution, calls and project access#

EndGame()#

Code example
EndGame(message: String = "", ask_first: bool = false) -> bool

Request PCA’s end-game route.

Returns: Boolean result from the runtime.

Code example
await EndGame("Thanks for playing.", true)

This is a player-facing game operation, not a GDScript return statement.

QuitToMenu()#

Code example
QuitToMenu(message: String = "", ask_first: bool = false) -> bool

Request a return to the game’s menu route.

Returns: Boolean result.

Code example
await QuitToMenu("Return to the menu?", true)
Page 66 of 378Permalink
Go to page