Skip to content

Check Angle To Target

Checks the angle between one transform's forward axis and a target transform.

Parameters

Parameter Description
From Object Transform to measure from.
Forward Axis Local axis used as the forward direction.
Target Transform to measure toward.
Check Numeric comparison (<, <=, >, >=, ==, etc.).
Angle Angle 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.
  • If both objects are at the same position, the measured angle is treated as 0.

Example

  1. Set From Object to Agent.
  2. Set Target to Player.
  3. Set Check to Less Than Or Equal.
  4. Set Angle to 45.
  5. Send PlayerInView on True Event.