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
| Parameter | Description |
|---|---|
| BaseObject | Specifies the character riding the vehicle (Self or Target). |
| CompareType | Type of comparison operation (Equal or NotEqual). |
Examples
| Description | BaseObject | Command | CompareType |
|---|---|---|---|
| Is the vehicle self is riding currently driving? | Self | IsVehicleDriving | Equal |
| Is the vehicle self is riding stopped? | Self | IsVehicleDriving | NotEqual |
| Is the target vehicle currently driving? | Target | IsVehicleDriving | Equal |
| Is the target vehicle stopped? | Target | IsVehicleDriving | NotEqual |