Action
An action is something people can interact with in the world.
Properties
Section titled “Properties”.label
: String
Section titled “.label: String”The label shown to the user when they are nearby. Defaults to Interact
.
.distance
: Number
Section titled “.distance: Number”The distance in meters that the action should be displayed. The engine will only ever show this if they are nearby AND there is no other action that is closer. Defaults to 3
.
.duration
: Number
Section titled “.duration: Number”How long the player must hold down the interact button to trigger it, in seconds. Defaults to 0.5
.onStart
: Function
Section titled “.onStart: Function”The function to call when the interact button is first pressed.
.onTrigger
: Function
Section titled “.onTrigger: Function”The function to call when the interact button has been held down for the full duration
.
.onCancel
: Function
Section titled “.onCancel: Function”The function call if the interact button is released before the full duration
.
.{...Node}
Section titled “.{...Node}”Inherits all Node properties