Skip to main content

SearchingToy

Gets called when the player is searching an interactable toy.

Start a script section

!-- OnEvent SearchingToy
-- require @evPlayer *evInteractable $evIsAllowed

# Add your instructions here
  • Group: PlayerEvents
  • Cancellable: Yes
  • Event data: PlayerSearchingToyEventArgs

Injected variables

VariableTypeDescription
@evPlayerplayer valueGets the player that is searching the toy.
*evInteractablereference to InteractableToy objectGets the toy the player is searching.
$evIsAllowedbool valueWhether the event is allowed to run.