Page MenuHomeFeedback Tracker

selectWeapon not working properly with launcher
New, NormalPublic

Description

selectWeapon doesn't work on secondary weapon. It only works for primary and sidearm.

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

m1nd0 edited Steps To Reproduce. (Show Details)Apr 1 2013, 2:24 AM
m1nd0 edited Additional Information. (Show Details)
m1nd0 set Category to Scripting.
m1nd0 set Reproducibility to Always.
m1nd0 set Severity to Minor.
m1nd0 set Resolution to Open.
m1nd0 set Legacy ID to 3535301517.May 7 2016, 1:21 PM

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.