Weapon Laser Trace inherits from Weapon Projectile Trace; therefore, it incorporates the functionality of its parent class and adds features specific to a laser beam that can be sustained over time. To notify actors hit by the laser, Weapon Laser Trace sends a message via the Weapon Trace Interface. Actors that want to receive this message must implement this interface. For more information on this topic, look here.
HOW TO CREATE? #
From the content browser, use the context menu (right-click) to select Weapon Laser Trace from the Projectile sub-category in Weapon Designer category.
HOW TO USE? #
- Select trace parameters.
- Set Niagara System used by Niagara Component.
- Set Beam Target Location Name. A parameter with the same name must be present in your Niagara system; it is used to define the end position of the beam.
- Use Weapon Ranged class (in continuous fire mode) or Weapon Designer Subsystem to spawn an instance.
VISUAL #
This class can manage laser rendering using the Niagara Component. Simply select the Niagara system to be used on the component. This system must have a user parameter of type Vector to receive the beam’s end position.
LONG IMPACT BEHAVIOR #
This class handles the instantiation of laser-related impact effects. You can specify whether the effect should be updated or re-instantiated on every frame. Then, simply override the On Spawn Impact Effect function to create a new effect, the On Update Impact Effect function to update the effect, and the On Stop Impact Effect function to destroy the effect.
