Search the Community
Showing results for tags 'ugl'.
Found 1 result
-
Force AI to select (MOD) grenade launchers
beno_83au posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
At the moment I've got a nice little thing going for vanilla grenade launchers to force AI to fire. However, having just tried it with a mod pack (African Conflict by Massi) the AI won't fire their grenade launchers. I'm certain I know why they won't, and this is what I use: _logic action ["UseWeapon",vehicle _unit,_unit,_index]; I've discovered that _index is the problem. As I learnt, if _index = 0 the unit will fire a single shot (all good), but to have them fire a grenade _index needs to be 5. For vanilla, it works. But when testing this with the mod it seems that to fire a grenade _index needs to be 4. Since the muzzle classNames of the vanilla and mod grenade launchers don't share any similarities (3GL v's M203) it means I can't just search for a reference in a weapon muzzle array. But that would only fix it for those mods that would share a similar name anyway. So is there a way I can determine what the weapon index is for any weapon's grenade launcher?- 1 reply
-
- weapon index
- grenade launcher
-
(and 4 more)
Tagged with: