Skip to reading
GDScript Programming & Godot

OpenInteractionCoin()

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

Open Interaction Coin

Open the interaction coin for a target entity when that feature is configured.

Source table from OpenInteractionCoin(), page 193
Option key / fieldMeaning and inputDefault
Object / Character entityIdChoose a scene entity ID. May be blank.Blank

Timing. Waits for the runtime routine to return; no further completion wait is promised by this schema.

Code example
await OpenInteractionCoin({"entityId": "archive_door"})

In use. Open a coin from a dedicated Inspect button or a hotspot interaction. The target must have useful verbs. A coin opened with no meaningful target cannot invent responses.

CloseInteractionCoin()#

Close Interaction Coin

Close the currently open interaction coin.

No options in the standard catalog schema.

Timing. Waits for the runtime routine to return; no further completion wait is promised by this schema.

Code example
await CloseInteractionCoin({})

In use. Close the coin when a menu takes over. It hides the coin, rather than disabling the feature for the rest of the game.

Page 193 of 378Permalink
Go to page