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
| Variable | Type | Description |
|---|---|---|
@evPlayer | player value | Gets the player who caused this bullet hole. |
$evDecalType | DecalPoolType enum value | Gets or sets the decal type to be spawned. |
*evHitPosition | reference to Vector3 object | Gets the position at which bullet hole has spawned. |
*evRaycastStart | reference to Vector3 object | Gets or sets the position where the bullet hole raycast will start for it to be properly attached to surface. |