Jump to content
Sign in to follow this  
TheBOOMStick

Spawn AI expression field with vehicles

Recommended Posts

i have been working with the Spawn AI modules and such, and i have had moderete succsess with changing their loadouts in the expression field for custom factions using this line of code:

spawnedGroup = _this select 0; {  loadout =  [_x, configfile >> "CfgVehicles" >> selectRandom ["SUD_NATO_Soldier_TL","SUD_NATO_Soldier_AR","SUD_NATO_Soldier_AT","SUD_NATO_Soldier_GL","SUD_NATO_Soldier","SUD_NATO_Soldier_Medic"]] call BIS_fnc_loadinventory; } forEach units spawnedGroup;

My question is this:

Is there a way to do the same with vehicles? I mean spawning a custom vehicle for it to be used as a standart part of the group.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×