Condition_IsInFront
Description
A condition command that checks whether the BaseObject is positioned in front of the NonBase target.
This condition evaluates the relative directional relationship between the BaseObject and the target entity.
The result is evaluated based on the comparison operator:
- Equal: The condition succeeds if the BaseObject is in front of the target.
- NotEqual: The condition succeeds if the BaseObject is NOT in front of the target (i.e., positioned behind the target).
Parameters
| Parameter | Description |
|---|---|
| BaseObject | The entity whose position is evaluated relative to the non-base target. |
| CompareType | The comparison operator. Supported values are Equal and NotEqual. |
Examples
| Description | BaseObject | Command | CompareType |
|---|---|---|---|
| Check if Self is in front of Target | Self | IsInFront | Equal |
| Check if Self is behind Target | Self | IsInFront | NotEqual |
| Check if Target is in front of Self | Target | IsInFront | Equal |