Skip to reading
GDScript Programming & Godot

CycleInteractionVerb()

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

Cycle Verb

Move forward or backward through the runtime verb cycle.

Source table from CycleInteractionVerb(), page 194
Option key / fieldMeaning and inputDefault
Direction directionWhole number. Range: -1 to 1.1

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

Code example
await CycleInteractionVerb({"direction": 1})

In use. Use direction 1 for the next verb and -1 for the previous one. A value of 0 does not mean "first verb." The cycle depends on the enabled verbs and current interaction settings.

InteractNearest()#

Interact with Nearest Hotspot

Perform a verb interaction with the nearest eligible hotspot under the proximity system.

Source table from CycleInteractionVerb(), page 194
Option key / fieldMeaning and inputDefault
Verb verbIdChoose a Verb Designer 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 InteractNearest({"verbId": ""})

In use. Use it for a controller interaction button. Select a verb or leave the optional verb selection to the current behavior. Test target selection in a crowded room.

Page 194 of 378Permalink
Go to page