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
| Variable | Type | Description |
|---|---|---|
@evPlayer | player value | Gets the player who caused it. |
$evDecalType | DecalPoolType enum value | Gets or sets the decal type to be spawned. |
*evHitPosition | reference to Vector3 object | Gets the position at which is bullet hole being placed. |
*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. |
$evIsAllowed | bool value | Whether the event is allowed to run. |