Skip to main content

Condition_IsVehicleDriving

Description

This condition function determines whether the vehicle that the specified BaseObject (character) is currently riding is in driving state. Specifically, it checks if the vehicle's speed is greater than 0.

The evaluation result is compared against the given CompareType:

  • Equal : Condition is true if the vehicle IS driving (speed > 0).
  • NotEqual : Condition is true if the vehicle is NOT driving (speed == 0).

Parameters

ParameterDescription
BaseObjectSpecifies the character riding the vehicle (Self or Target).
CompareTypeType of comparison operation (Equal or NotEqual).

Examples

DescriptionBaseObjectCommandCompareType
Is the vehicle self is riding currently driving?SelfIsVehicleDrivingEqual
Is the vehicle self is riding stopped?SelfIsVehicleDrivingNotEqual
Is the target vehicle currently driving?TargetIsVehicleDrivingEqual
Is the target vehicle stopped?TargetIsVehicleDrivingNotEqual