Arma 3
Hetman War Stories: Multiplayer - Altis
 This topic has been pinned, so it's probably important
Atlas  [developer] 24 Jun @ 7:42pm
Group Leader Vehicle Control Script
Group Leader Vehicle Control Script - Summary
This script provides group leaders with intuitive vehicle management controls for their AI squad members in ArmA 3, specifically designed for mechanized and motorized infantry operations.


Core Functionality
DEBUS Command (Dismount)
  • Adds a red "DEBUS DEBUS DEBUS" action when you're a group leader in a vehicle
  • Orders all AI squad members to dismount from the vehicle
  • Excludes crew positions (driver, gunner, commander) from dismounting
  • Sets group formation to LINE after dismount
  • Staggers dismount timing (0.3-0.5 seconds between each unit) for realistic effect
  • Automatically orders units to regroup with leader after dismounting
INBUS Command (Board Vehicle)
  • Adds a green "INBUS - Board Vehicle" action for group leaders
  • Orders all nearby AI squad members (within 75m) to board the vehicle
  • Only attempts to fill available cargo positions
  • Includes fallback boarding mechanics if AI fails to board initially
  • Forces AI to stop current actions and prioritize boarding


Technical Features
Multiplayer Compatibility
  • Fully MP-compatible using remoteExec for cross-client AI control
  • Properly handles locality of AI units across different clients
  • Vehicle chat messages broadcast to all players in vehicle
Respawn & Persistence
  • Automatically reinitializes after player respawn
  • Cleans up actions when player dies
  • Dynamically adds/removes actions based on:
  1. Player leadership status
  2. Vehicle occupancy
  3. Vehicle changes
Smart Action Management
  • Actions only appear when you're the group leader AND in a vehicle
  • Actions automatically remove when you exit vehicle or lose leadership
  • Monitors vehicle changes to update action availability


Use Case
Perfect for scenarios where players lead AI squads using APCs, IFVs, trucks, or helicopters, allowing quick and reliable mounting/dismounting of infantry squads during combat operations without micromanaging individual AI units.
Last edited by Atlas; 24 Jun @ 7:58pm