Skip to main content

SearchedToy

Gets called when the player has searched an interactable toy.

Start a script section

!-- OnEvent SearchedToy
-- require @evPlayer *evInteractable

# Add your instructions here
  • Group: PlayerEvents
  • Cancellable: No
  • Event data: PlayerSearchedToyEventArgs

Injected variables

VariableTypeDescription
@evPlayerplayer valueGets the player who searched the toy.
*evInteractablereference to InteractableToy objectGets the toy that was searched.