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
- Set From Object to
NPC. - Set To Object to
Player. - Set Check to
Less Than. - Set Distance to
3. - Send
InInteractRangeon True Event.