Skip to main content

SearchingArmor

Gets called when the player is searching for armor.

Start a script section

!-- OnEvent SearchingArmor
-- require @evPlayer *evBodyArmorPickup $evIsAllowed

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

Injected variables

VariableTypeDescription
@evPlayerplayer valueGets the player searching for armor.
*evBodyArmorPickupreference to BodyArmorPickup objectGets the armor pickup.
$evIsAllowedbool valueWhether the event is allowed to run.