Skip to reading
GDScript Programming & Godot

ExecutePreposition()

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

Execute Two-Object Command

Perform a two-target verb interaction using a source, target and verb.

Source table from ExecutePreposition(), page 97
Option key / fieldMeaning and inputDefault
Verb verbIdChoose a Verb Designer ID.Blank
First Object (entity:id or inventory:id) sourceIdText.Blank
Second Object (entity:id or inventory:id) targetIdText.Blank

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

Code example
await ExecutePreposition({"verbId": "", "sourceId": "", "targetId": "archive_door"})

In use. For Use Key On Door, supply the source item/record reference, the door reference, and the Use verb. Configure the verb's preposition rules and the matching interaction first. A normal scene entity ID and an inventory reference are different kinds of target.

CancelPreposition()#

Cancel Two-Object Command

Cancel the currently assembled two-object interaction.

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 CancelPreposition({})

In use. Let a Cancel button clear Use Key On ... when the player changes their mind. It clears the pending combination, rather than deleting the item or disabling the verb permanently.

Page 97 of 378Permalink
Go to page