Skip to main content

PlacedBulletHole

Gets called when the bullet hole has been placed.

Start a script section

!-- OnEvent PlacedBulletHole
-- require @evPlayer $evDecalType *evHitPosition *evRaycastStart

# Add your instructions here
  • Group: PlayerEvents
  • Cancellable: No
  • Event data: PlayerPlacedBulletHoleEventArgs

Injected variables

VariableTypeDescription
@evPlayerplayer valueGets the player who caused this bullet hole.
$evDecalTypeDecalPoolType enum valueGets or sets the decal type to be spawned.
*evHitPositionreference to Vector3 objectGets the position at which bullet hole has spawned.
*evRaycastStartreference to Vector3 objectGets or sets the position where the bullet hole raycast will start for it to be properly attached to surface.