Arma 3
SOG AI
How can I create my own SOG AI teams to quick-load into missions?
I'm new to Arma, and I have been having a blast with this mod. Your pre-made teams are friggin' cool, but sometimes I wanna cheat a little and pass out suppressor cans to everyone XD. Is there any way to make my own fire teams to select from the menu?

I'm aware that you can Change Player loadout -> Copy Player Loadout to Unit. (Which is SO COOL btw.) But even with some loadouts I've made myself ahead of time, it can still take a bunch of time when you're copying x10. Its also slightly bugged. (Pistol suppressors, uniforms, and uniform contents don't copy, for example.)

I'm not shy of using notepad++, text edit, etc. So if you can point me to the path, that's cool too!

Thanks in advance, looking forward to see what you do in Reforger/ A4!
< >
Showing 1-9 of 9 comments
Johnnyboy  [developer] 6 Mar @ 2:45pm 
Here's a vid on how to spawn a custom group via the console. Instructions are in notes below video.

https://www.youtube.com/watch?v=uzk-sPGJX8s&t=24s
Awesome thank you! This video actually just popped up in my feed XD
Alright, so this has opened up a whole new can of worms, which might be best discussed on discord...

I'm trying to create a custom squad for use with sog ai, both in SOGPF and potentially other missions/ campaigns. I've tweaked gear and loadouts in the VR arsenal and Eden editor, and saved the new team as a custom composition.

Problem 1: Using the script lines defined in your video above...yeah I can get the default blufor dudes to spawn. But I can't get *my* dudes to spawn. I try defining them by their composition name, individually, as a group spawn with the whole Bluefor > These guys > Those guys > MyTeamName syntax...but nothing. If anyone has any guidance on how to get that to work, it would be greatly appreciated!

Problem 2: When I spawn the default guys in a SOGPF, I get no option from sog ai to wait to run the script until AI are spawned. So I have to spawn the default guys, but then in order to get them to use sog ai, I have to spawn one of your pre-defined teams (RT Colombia, etc). Then sog ai runs for everyone I spawned, but I have to tell your guys to leave. So when I eventually figure out how to spawn my own guys...I still have to spawn yours and tell them to leave if I want my own customized AI group. If that makes sense. It'll work but it's not super ideal.

That's a lot of word salad, please don't take it as a demand. Any help with my foolishness is appreciated!
Johnnyboy  [developer] 8 Mar @ 4:09pm 
Post your spawn code so I can see how you do it.
Johnnyboy  [developer] 8 Mar @ 4:37pm 
Maybe the easiest way to do what you want is use my Spawn Team code to spawn a set of guys, then you run a script that loops through the units in your squad, and applies a custom loadout for each one. You can use getUnitLoadout to get an array of unit's complete loadout, and use copyTo Clipboard to capture that loadout array in text. It will then look something like this:

[["vn_m16","","","",["vn_m16_20_t_mag",18],[],""],[],["vn_p38s","","","",["vn_m10_mag",6],[],""],["vn_b_uniform_macv_01_07",[["vn_b_item_firstaidkit",1],["vn_m61_grenade_mag",2,1],["vn_m18_purple_mag",1,1],["vn_m10_mag",1,6],["vn_m16_20_t_mag",2,18]]],["vn_b_vest_usarmy_14",[["vn_m16_20_t_mag",1,18]]],["vn_b_pack_01",[]],"vn_b_helmet_m1_01_01","G_Aviator",["vn_m19_binocs_grey","","","",[],[],""],["vn_b_item_map","","vn_b_item_radio_urc10","vn_b_item_compass","vn_b_item_watch",""]];

You paste that into a script file, and make it look like this:
_loadout = [["vn_m16","","","",["vn_m16_20_t_mag",18],[],""],[],["vn_p38s","","","",["vn_m10_mag",6],[],""],["vn_b_uniform_macv_01_07",[["vn_b_item_firstaidkit",1],["vn_m61_grenade_mag",2,1],["vn_m18_purple_mag",1,1],["vn_m10_mag",1,6],["vn_m16_20_t_mag",2,18]]],["vn_b_vest_usarmy_14",[["vn_m16_20_t_mag",1,18]]],["vn_b_pack_01",[]],"vn_b_helmet_m1_01_01","G_Aviator",["vn_m19_binocs_grey","","","",[],[],""],["vn_b_item_map","","vn_b_item_radio_urc10","vn_b_item_compass","vn_b_item_watch",""]];
(units group player #1) setUnitLoadout _loadout;

You then have a loadout assigned to your first AI unit. Do that for all the units (plus forceUniform command to get uniforms you want) and you can redress all your guys. SOG AI will already be initialized for them because you used my spawn team action. You are simply redressing/reequipping them.
I'm an idiot, but I cracked it! Its easier to not use scripting at all!

I used SSPCM (Simple Single Player Cheat Menu) to enable Zeus in the SOGPF "Spin Down" mission. Then I spawned my custom group and added them to the player group (Ctrl + Click and drag thr group to the player). Then I ran sog ai from the mousewheel menu, by spawning a small 5-man team (to delete later).

The 5-man spawned, sog ai initialized...but...at first sog ai bugged out and I couldn't see anyone on the normal command menu. But then I ordered everyone to follow me, then halt. Now they all appear on the menu!

Lastly, its just a matter of either ordering the 5-man to leave, or deleting them via Zeus!

RT Texas is born...

The next step is to see if they break the mission XD. I might make a tutorial video if they work!
Last edited by REDACTED; 8 Mar @ 5:39pm
Johnnyboy  [developer] 9 Mar @ 10:54am 
Glad you got it sorted.
REDACTED 16 Apr @ 1:06am 
Update: Totally works!

You can create your own SOG teams in the Eden editor, then save them out as a custom composition. I recommend saving and testing their loadouts in the virtual arsenal as well. Then you just retrieve them with Zeus in ANY mission, via SSPCM.

First, you'll want to make sure SOG AI is running by either selecting "Choose Team", then telling the team you pick to leave individually (Covered in one of Johnny's videos). Or, "Load SOG AI when AI joins my team", depending on how the mission is structured.

Then load SSPCM, Enable Zeus. From Zeus you can find your custom team in the right hand menu under Groups > Custom (Yellow Clover Icon) > MACV-SOG (Or whoever you told the game they are with). Click and drag them to where you want, drop them in. Now select the whole group from the left hand menu by clicking on their group name. Find the actual character model for the first guy on the team, then Cntrl + Click and drag the blue line that appears to yourself, the player.

Bam. Arma hands control of them over to you, SOG AI instantly assigns them to color coded teams, and begins initializing them onto your team.

This also works with ANY pre-defined group you have in your install, and teams can be made out of ANY pre-defined or custom unit. You want some random 2035 dudes in your 1944 mission? No problemo. Wanna create a team of 20 guys armed with RPG's and turn them loose on a supply convoy? Diabolical... and they can leapfrog thanks to Johhny Boy!

Tips for custom team success:
- Create and save a mission in Eden that just houses your teams. I recommend the VR map.
- Select units one by one from the right hand menu and place them down in the order you want, with the exact roles you want. (1-1 RTO, Medic, Grenadier, etc.)
- If you change their roles later, it will mix up the order, which can screw up "Tailgunner, place mine!", if the last guy has no mines. (Imagine a guy with the biggest backpack full of Bouncing Betty's...or whip traps...)
- You can use a pre-existing group as a template, but remember you can't change their roles without goofing the order. So just place one down next to where yours will be so you don't forget a medic or something.
- Placing them IN ORDER is really important to arma for some reason. So even if you change where a guy is standing, they will still load into the game in the order you placed each character down in the editor.
- You can edit their loadouts and clothing to your heart's content without messing things up. Really what is arma if not tactical dress-up? XD
- Right Ctrl + Click and drag the blue line from each unit to the first guy in the squad, *in order*, to make them a team. Then click on the team in the left hand menu, name them, mess with their attributes, and "Save Custom Composition". They will now appear in your custom groups menu (yellow clover icon).

Congrats, 100 heavily armed village elders are at your command, for any and every mission! (With 100% skill, all medic/engineer/EOD's, naturally). More practically, you can give everyone on your squad suppressors and flak jackets.

I recommend grabbing the "3den Enhanced" and "Zeus Enhanced" mods for even more virtual special forces micromanagement opportunities.
Johnnyboy  [developer] 27 Apr @ 8:41am 
Thanks for the detailed reply dude! This will help some folks out!
< >
Showing 1-9 of 9 comments
Per page: 1530 50