selectWeapon doesn't work on secondary weapon. It only works for primary and sidearm.
Description
Description
Details
Details
- Legacy ID
- 3535301517
- Severity
- Minor
- Resolution
- Open
- Reproducibility
- Always
- Category
- Scripting
Steps To Reproduce
Place ai unit with this in INIT:
removeAllWeapons this;
this addMagazines ["rpg32_aa_f",2];
this addweapon "launch_rpg32_f";
this selectWeapon "launch_rpg32_f";
Unit does not select the launcher.
Event Timeline
Comment Actions
Still the case in 1.18.
When you removeAllWeapons and only add a launcher (like in the repro steps) they will of course select it, but the main reason to use selectWeapon is when there are other weapons available too, and in that case it's not working so far.