DEV614 33 Posted October 27, 2016 I have a 3 man AI group with a mortar bag and tripod that I'm controlling via the Advanced AI Command (sorta like high command). I was wondering if there was any possible way to make that group deploy it's weapons via addAction or something. High Command Converter has something for unpacking static weapons, but sadly Advanced AI Command and HCC don't get along too well, and I prefer AiC. Share this post Link to post Share on other sites
davidoss 552 Posted October 28, 2016 You can trigger a script where you play with _unit action ["PutBag",_unit]; _unit2 action ["PutBag",_unit2]; removeBackpack _unit; removeBackpack _unit2; and spawn createVehicle using correct position and static gun classname Share this post Link to post Share on other sites
killzone_kid 1330 Posted October 28, 2016 Have 2 units, the gunner and assistant gunner with their backpacks, name them mortar_gunner and mortar_assistant_gunner. Run this script: mortar_gunner addEventHandler ["WeaponAssembled", { _this select 0 action ["GetInGunner", _this select 1]; }]; _base = unitBackpack mortar_assistant_gunner; mortar_assistant_gunner action ["PutBag"]; mortar_gunner action ["Assemble", _base]; 5 1 Share this post Link to post Share on other sites
John Douglas 2 Posted May 26, 2019 (edited) Apologies: I have moved this topic to ArmA2 Scripts: Hi, Based on killzone_kids code above, I've attempted to script a version compatible for ArmA2 ACE, however script isn't assembling weapon? My code posted below: I've checked class names for tripods using the LoadOutEditor "LEA", and having tested a similar script to "davidoss" above above using the drop weapon command. ACE doesn't like action "PutBag" command, as backpacks/racks are classed as weapons as I understand it. KORD_Tripod action ["dropWeapon", KORD_Tripod, "ACE_6T7TripodProxy"]; KORD_Gunner action ["dropWeapon", KORD_Gunner, "ACE_KORDProxy"]; KORD_Gunner addEventHandler ["WeaponAssembled", { _this select 0 action ["GetInGunner", _this select 1]; }]; _base = "ACE_6T7TripodProxy"; // was: _base = unitBackpack KORD_Tripod; KORD_Tripod action ["dropWeapon", KORD_Tripod, "ACE_6T7TripodProxy"]; // was: KORD_Tripod action ["PutBag"]; KORD_Gunner action ["Assemble", _base]; Edited May 27, 2019 by John Douglas Moved post to ArmA2 scripts Share this post Link to post Share on other sites