Skip to main content

PlacingBulletHole

Gets called when the bullet hole is being placed.

Start a script section

!-- OnEvent PlacingBulletHole
-- require @evPlayer $evDecalType *evHitPosition *evRaycastStart $evIsAllowed

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

Injected variables

VariableTypeDescription
@evPlayerplayer valueGets the player who caused it.
$evDecalTypeDecalPoolType enum valueGets or sets the decal type to be spawned.
*evHitPositionreference to Vector3 objectGets the position at which is bullet hole being placed.
*evRaycastStartreference to Vector3 objectGets or sets the position where the bullet hole raycast will start for it to be properly attached to surface.
$evIsAllowedbool valueWhether the event is allowed to run.