Interactor¶
This
Interactor
struct contains a set of functions for dealing with interactors.Functions¶
Provides a callback that will be invoked when an interactable object enters the interactive range.
Provides a callback that will be invoked when an interactable object leaves the interactive range.
Provides a callback that will be invoked when the interactor starts interacting with an interactable object in interactive range.
Provides a callback that will be invoked when the interactor stops interacting with the interactable object.
Interacts with an interactable object in the specified scan mode with an interaction type, when the interactor is within the interactive range.
The interaction types denote different interactions which you can customize for yourself, ranging from 1-20000.
boolean StopInteractWithObject(YaEntity targetEntity, ScanMode scanMode, [number interactionType])Beta
Stops the specified interactable object from being interacted with.
Sets the object to interactable in your custom scan mode when the object is in the interactive range. In the custom scan mode, you can implement your own mechanism for scanning interactable objects.
Sets the object to uninteractable in your custom scan mode when the object is in the interactive range. In the custom scan mode, you can implement your own mechanism for scanning interactable objects.