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
- Set From Object to
Agent. - Set Target to
Player. - Set Check to
Less Than Or Equal. - Set Angle to
45. - Send
PlayerInViewon True Event.