Skip to main content

ProcessingScp1509Message

Gets called when processing a player's interaction with the Scp1509 item.

Start a script section

!-- OnEvent ProcessingScp1509Message
-- require @evPlayer *evScp1509Item $evMessage $evAllowAttack $evAllowInspect $evIsAllowed

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

Injected variables

VariableTypeDescription
@evPlayerplayer valueThe owner of the SCP-1509 item.
*evScp1509Itemreference to Scp1509Item objectThe Scp1509 item.
$evMessageScp1509MessageType enum valueGets or sets the Scp1509MessageType sent by the player.
$evAllowAttackbool valueGets or sets whether starting an attack is allowed.
$evAllowInspectbool valueGets or sets whether starting an inspect is allowed.
$evIsAllowedbool valueWhether the event is allowed to run.