Skip to content

Ring Trace

Ring Trace

A ring trace forms a circular ring around a point with an inner and outer radius. Only actors outisde the inner ring are hit.

  • Features:
    • Great for AoE spells like explosions or shockwaves.
    • Defined by inner radius and outer radius.
    • Can be centered on the caster or a target point.

Usage example

A melee spin ability where the hits are deteced between 250 and 500 units fromt the attacker.

Implementing an example of Ring Trace

Prequisits

This example assumes that you are using the ThirdPersonTemplate project or understand where your current playable character class is.

Find the function.

In your playable Character's event graph, right click in some empty space and look for Indectis or Ring Trace Single. You should see a bunch of different options come up as a result, pick Ring Trace Single for Objects.

Ring Step 1

Configuring the Ring trace.

Every parameter on the function has a tooltip that describes what it does but the technical details are listed on this same page under Ring Trace for Objects. This example will use parameters as shown in the image below:

Ring Step 2

Using debug input.

Right-click again in the event graph and look for Debug Input it doesn't matter which one you pick, we can assign the key to it through the details panel. Pick any key you want, this example uses Q for it.

Ring Step 3

Connect the Debug Input with the Ring Trace.

Connect the Pressed execution pin from the Debug Input to the Ring Trace Single for Objects that was configured in step two.

Ring Step 4

Play in Editor to test.

Place a single third person character in your level then play in editor and press Q while facing it to see the Ring Trace work with it's debug shape.

Ring Trace Single by Channel

A ring trace that uses a trace channel for internnal sweep.

Ring Trace Single by Channel

Technical Details

ParameterDescription
OriginLocation at the center of the ring
Outer RadiusRadius of the outer ring
Inner RadiusRadius of the inner ring
Trace ChannelTrace channel to use for the sweep
Trace ComplexShould trace against complex collision
Actors to IgnoreAn array of actors to ignore
Ignore SelfShould ignore this actor
Draw Debug TypeDebug draw duration type
Trace ColorDebug color of the trace
Trace Hit ColorDebug color of valid hits
DrawtimeDuration for the debug draw on screen

Ring Trace Single for ObjectTypes

A ring trace that uses an array of object types for internnal sweep.

Ring Trace Single for Objects

Technical Details

ParameterDescription
OriginLocation at the center of the ring
Outer RadiusRadius of the outer ring
Inner RadiusRadius of the inner ring
ObjectTypesArray of object types for the sweep
Trace ComplexShould trace against complex collision
Actors to IgnoreAn array of actors to ignore
Ignore SelfShould ignore this actor
Draw Debug TypeDebug draw duration type
Trace ColorDebug color of the trace
Trace Hit ColorDebug color of valid hits
DrawtimeDuration for the debug draw on screen

Ring Trace Single by Profile

A ring trace that uses a collision profile for internal sweep.

Ring Trace Single by Profile

Technical Details

ParameterDescription
OriginLocation at the center of the ring
Outer RadiusRadius of the outer ring
Inner RadiusRadius of the inner ring
ProfileCollision profile to use for sweep
Trace ComplexShould trace against complex collision
Actors to IgnoreAn array of actors to ignore
Ignore SelfShould ignore this actor
Draw Debug TypeDebug draw duration type
Trace ColorDebug color of the trace
Trace Hit ColorDebug color of valid hits
DrawtimeDuration for the debug draw on screen

Ring Trace Multi by Channel

A ring trace that uses a trace channel for internal sweep and returns an array of hits.

Ring Trace Multi by Channel

Technical Details

ParameterDescription
OriginLocation at the center of the ring
Outer RadiusRadius of the outer ring
Inner RadiusRadius of the inner ring
Trace ChannelTrace channel to use for the sweep
Trace ComplexShould trace against complex collision
Actors to IgnoreAn array of actors to ignore
Ignore SelfShould ignore this actor
Draw Debug TypeDebug draw duration type
Trace ColorDebug color of the trace
Trace Hit ColorDebug color of valid hits
DrawtimeDuration for the debug draw on screen

Ring Trace Multi for ObjectTypes

A ring trace that uses an array of object types for internal sweep and returns an array of hits.

Ring Trace Multi for Objects

Technical Details

ParameterDescription
OriginLocation at the center of the ring
Outer RadiusRadius of the outer ring
Inner RadiusRadius of the inner ring
ObjectTypesArray of object types for the sweep
Trace ComplexShould trace against complex collision
Actors to IgnoreAn array of actors to ignore
Ignore SelfShould ignore this actor
Draw Debug TypeDebug draw duration type
Trace ColorDebug color of the trace
Trace Hit ColorDebug color of valid hits
DrawtimeDuration for the debug draw on screen

Ring Trace Multi by Profile

A ring trace that uses a collision profile for internal sweep and returns an array of hits.

Ring Trace Multi by Profile

Technical Details

ParameterDescription
OriginLocation at the center of the ring
Outer RadiusRadius of the outer ring
Inner RadiusRadius of the inner ring
ProfileCollision profile to use for sweep
Trace ComplexShould trace against complex collision
Actors to IgnoreAn array of actors to ignore
Ignore SelfShould ignore this actor
Draw Debug TypeDebug draw duration type
Trace ColorDebug color of the trace
Trace Hit ColorDebug color of valid hits
DrawtimeDuration for the debug draw on screen