Action: GunLightOn will attempt to activate the flashlight attachment on the unit/player's primary weapon and ignores handgun/secondary weapons with flashlight attachments if the handgun is not the only weapon held by the unit. {F23994}
Description
Description
Details
Details
- Legacy ID
- 1352877397
- Severity
- None
- Resolution
- Open
- Reproducibility
- Always
- Category
- Scripting
Steps To Reproduce
1: Using secondary/handgun weapon with a flashlight attachment, while having a rifle/primary weapon in unit inventory.
2: Execute: player action ["GunLightOn",player];
3: Expected: If current weapon has flashlight attachment turn that on, else switch to other weapon if it has a flashlight attachment and use that.
Observed:
Unit will swap to primary weapon from current weapon, if primary weapon has flashlight attachment it will go on.
Additional Information
The following video demonstrates this behavior: http://youtu.be/keQCwGdnCpg
Additionally, I have attached the basic model and configuration files required to reproduce as per linked video.