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
| Variable | Type | Description |
|---|---|---|
@evPlayer | player value | Gets the player that is searching the toy. |
*evInteractable | reference to InteractableToy object | Gets the toy the player is searching. |
$evIsAllowed | bool value | Whether the event is allowed to run. |