Skip to main content

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

ParameterDescription
BaseObjectThe entity whose position is evaluated relative to the non-base target.
CompareTypeThe comparison operator. Supported values are Equal and NotEqual.

Examples

DescriptionBaseObjectCommandCompareType
Check if Self is in front of TargetSelfIsInFrontEqual
Check if Self is behind TargetSelfIsInFrontNotEqual
Check if Target is in front of SelfTargetIsInFrontEqual