Condition_VehiclePartState
Description
Checks the current state of a specific vehicle part (S1) against the expected state (S2).
Parameters
| Parameter | Description |
|---|
| BaseObject | The vehicle to validate (Self or Target). |
| CompareType | Type of comparison operation (Equal or NotEqual). |
| S1 | The vehicle part type (DriverDoor, Trunk, DriverWindow, etc.). |
| S2 | The expected part state value to compare against. |
Examples
| Description | BaseObject | Command | CompareType | S1 | S2 |
|---|
| Checks whether driver door is open. | Self | VehiclePartState | Equal | DriverDoor | Open |
| Checks whether trunk is NOT closed. | Self | VehiclePartState | NotEqual | Trunk | Closed |