Skip to main content

PickingUpArmor

Gets called when the player is picking up armor.

Start a script section

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

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

Injected variables

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