ArmaForge Assistant

Welcome to ArmaForge Assistant! 👋

I'm here to help with all your Arma Reforger modding questions. You can ask about:

  • Script debugging and optimization
  • Workbench setup and configuration
  • Mod packaging and deployment
  • Game mechanics implementation

What would you like to know about today?

How do I spawn AI units in a mission script?

Here's a basic example of spawning AI units in Arma Reforger:

// Create a group for the AI
auto group = GetGame().CreateGroup();

// Spawn a soldier at position [0,0,0]
auto unit = GetGame().CreateCharacter(group, "Faction_US_Soldier_Rifleman_M4A1");
unit.SetPosition(vector.Zero);

// Add waypoints
auto waypoint = group.AddWaypoint(vector(100, 0, 100));
waypoint.SetType(EWaypointType.MOVE);

Remember to set appropriate faction templates and loadouts for your units.