Weapon Trace Interface is an interface to easily send hit information to actor that was hit by trace, especially by laser gun. We cannot use Unreal Engine’s built-in damage system (Point Damage, Radial Damage, etc.) to send information indicating that, for example, a laser is hitting an actor over multiple frames. That is why you can implement this interface in any actor to receive this information. All weapons that use a WeaponLaserTrace use this interface. It contains the following functions:
- OnTraceHitBegin: Called when a weapon laser trace start hit an actor.
- OnTraceHitStay: Called by a weapon laser trace when the actor is continuously hit over several frames.
- OnTraceHitEnd: Called by a laser weapon trace when the actor is no longer hit.
