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
| Variable | Type | Description |
|---|---|---|
@evPlayer | player value | Gets the player whose blood it is. |
@evAttacker | player value | Gets the player that attacked the Player. |
*evHitPosition | reference to Vector3 object | Gets the position at which is blood being placed. |
*evRaycastStart | reference to Vector3 object | Gets or sets the position where the blood decal raycast will start for it to be properly attached to surface. |
$evIsAllowed | bool value | Whether the event is allowed to run. |