Skip to content

Check Distance To Target

Checks the distance between two transforms.

Parameters

Parameter Description
From Object Transform to measure from.
To Object Transform to measure to.
Check Numeric comparison.
Distance Distance value to compare against.
True Event Sent when the comparison is true.
False Event Sent when the comparison is false.
Store Result Optional bool to store the test result.

Notes

  • If either transform is missing, the test returns false.

Example

  1. Set From Object to NPC.
  2. Set To Object to Player.
  3. Set Check to Less Than.
  4. Set Distance to 3.
  5. Send InInteractRange on True Event.