Skip to main content

Events

OnBulletHit

image.png

Description

  • Called when a bullet hits something
  • Can be used to apply damage, spawn decals etc

Arguments

  • Hit - the HitResult structure

OnBulletShot

image.png

Description

  • Called when a bullet spawns (or the line trace is fired)
  • Can be used for playing sounds, niagara fx and others.

Arguments

  • StartLocation - the location where the bullet has spawned (i.e. the muzzle socket position)
  • Hit - HitResult of the actual trace
  • Success - if the trace hit something or not

OnMagazineEmpty

image.png

Description

  • Called when there are no more bullets in the current magazine

OnOutOfAmmo

image.png

Description

  • Called when there are no more bullets

OnWeaponFired

image.png

Description

  • Called when the weapon is fired (not per bullet - i.e. on burst, will be called once even if the burst has more bullets)