Skip to content
dexied edited this page Aug 1, 2026 · 6 revisions

Welcome to the DTSDemo wiki! If the images are not displayed correctly, open them in a new tab!



Installing the plugin

  1. Download the DistanceTrackingSystem plugin from FAB, then open your project and enable it in the Plugins section.
image
image
  1. If you downloaded the plugin from another source, place it in the Plugins folder in your project. The plugin path will look like this: YourProject/Plugins/DistanceTrackingSystem


About the plugin

With the DistanceTrackingSystem plugin, you can track distances to Components or Actors. All calculations are multithreaded, significantly increasing performance! Here is a list of functions you can use:


  1. StartTrackingDistanceFromComponentToComponent - Tracks the distance from component to component!
image
  1. StartTrackingDistanceFromActorToActor - Tracks the distance from actor to actor!
image
  1. StartTrackingDistanceFromActorToComponent / StartTrackingDistanceFromComponentToActor - Tracks the distance from the actor to the component
image
  1. StartTrackingDistanceFromActorToLocation / StartTrackingDistanceFromLocationToActor - Tracks the distance from the actor to the location!
image
  1. StartTrackingDistanceFromComponentToLocation / StartTrackingDistanceFromLocationToComponent - Tracks the distance from the component to the location!
image

More about inputs and outputs!

image

Inputs:

  • InTrackingInterval - OnTrackingUpdate trigger interval. A larger interval value improves the function's performance.
  • InTrackingLifeTime - Used to automatically destroy the function! If LifeTime expires, OnTrackingStop will be called; this delegate is only called in this case!
  • bInDistanceSquared - If enabled, OutDistance will output a square distance. This also improves the performance of the function.
  • InActor - An actor that is used to calculate distance.
  • InActorRelativeOffset - Location relative to the Actor in the local coordinate system. The Actor's scale is also taken into account.
  • InComponent - The component used to calculate distance.
  • InComponentBoneName - A socket or bone that is in the component and will be used as a point for calculating the distance!
  • InComponentRelativeOffset - Location relative to the Component in the local coordinate system. The Component's scale is also taken into account. If ComponentBoneName is specified, the position will be calculated from the received socket or bone.

Outputs:

  • OnTrackingStart - Triggered immediately after the function is created. All values ​​(distance, location, etc.) are available at this stage!

  • OnTrackingUpdate - Called continuously when TrackingInterval fires.

  • OnTrackingStop - Called if the function's LifeTime has expired.

  • OutDTC___AsyncAction - A reference to the function object. This is necessary for destroying the function at any time; for example, you can call the Destroy function from this reference. This object also stores all the inputs, which you can access at any time!

  • OutDistance - Distance between Actors or Components. Available during OnTrackingStart/OnTrackingUpdate/OnTrackingStop.

  • OutLifeTimeAlpha - Value from 0 to 1. Where 1 = MaxLifeTime! You can get CurrentLifeTime/MaxLifeTime from the OutDTC___AsyncAction.

  • OutActorLocation/OutComponentLocation - Locations used to calculate distance!



Additionally!

You can get some values ​​in Runtime like this

image

You can destroy a function by calling the Destroy function at any time.

image

To avoid some problems, set a variable to a function reference during OnTrackingStart and clear the variable during OnTrackingEnd.

image

Also, destroy the function during EndPlay

image

You can find a list of all functions here:

image