Summary
Lets Battlegroup Command AI board vehicles locked by WCS_VehicleLock, with the same access as the player who commands them. Server side.
Description
# BGC - WCS Vehicle Lock compat
Compatibility add-on between **Battlegroup Command** (BGC_Core) and **WCS_VehicleLock**.
## The problem
WCS_VehicleLock locks a vehicle to the player who bought it, and makes AI ignore any order to get into a vehicle that is locked for them. An AI has no player id, so a locked vehicle stayed closed even to the AI of its own owner: a Battlegroup Command group was sent to the vehicle again and again, and never got in, with no error.
Vehicles placed by the scenario (no owner) were not affected.
## What this add-on does
An AI of a Battlegroup Command group may get into a locked vehicle **if the player who commands its group would be allowed in by WCS_VehicleLock**:
- the vehicle owner,
- a player in the owner's game group,
- a player the owner gave a key to,
- an admin.
For a group under faction command, the access of the faction commander in office is used.
Nothing else changes:
- Players keep the WCS_VehicleLock rules.
- AI that are not in a Battlegroup Command group keep the WCS_VehicleLock rules.
- A vehicle locked to another player stays closed to your AI.
## Requirements
- BGC_Core - Battlegroup Command
- WCS_VehicleLock
Both are downloaded automatically as dependencies.
## Install
Server: add this mod to the server mod list (the two dependencies are resolved by the game). Players download it when they join.
The rule runs on the server only. No setting, no new key, no change to the Battlegroup Command data or network protocol.
## Compatibility
- Small script add-on: one `modded` class on the WCS lock component, which always calls the original rule first.
- Only for WCS_VehicleLock. Other vehicle lock mods are not covered.
## Known limits
- Some WCS vehicles have few seats usable by AI (for example the base JLTV: driver and two passengers). The rest of the group stays on foot.
License
Arma Public License (APL)