Skip to main content

PlacingBlood

Gets called when blood of the player is being placed.

Start a script section

!-- OnEvent PlacingBlood
-- require @evPlayer @evAttacker *evHitPosition *evRaycastStart $evIsAllowed

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

Injected variables

VariableTypeDescription
@evPlayerplayer valueGets the player whose blood it is.
@evAttackerplayer valueGets the player that attacked the Player.
*evHitPositionreference to Vector3 objectGets the position at which is blood being placed.
*evRaycastStartreference to Vector3 objectGets or sets the position where the blood decal raycast will start for it to be properly attached to surface.
$evIsAllowedbool valueWhether the event is allowed to run.