Page MenuHomeFeedback Tracker

[Feature Request] New eventhandler: WeaponSwitched
Closed, ResolvedPublic

Description

Would trigger whenever given unit switches weapon, as in switches to secondary, handgun, etc..
Should probably also trigger when a new weapon replaces a weapon in primary, launcher or handgun slot (by picking up a new one or via scripted changes)

<unit> addEventHandler ["WeaponSwitched", {}]

Would return:

  • unit
  • new weapon
  • old weapon (if any)
  • new weapon magazine data (like Reloaded eh)
  • old weapon magazine data (like Reloaded eh)

Details

Severity
None
Resolution
Open
Reproducibility
N/A
Operating System
Windows 7
Category
Engine

Event Timeline

h- created this task.Jun 11 2020, 8:35 PM
h- added a comment.Apr 9 2023, 5:59 AM

Bump since SlotItemChanged EH is being added.
So no excuses left why not add this and MuzzleSwitched EH (https://feedback.bistudio.com/T151698) ;)

dedmen added a comment.EditedDec 8 2023, 4:12 PM

Related to T151698

dedmen closed this task as Resolved.May 15 2024, 2:25 PM

https://feedback.bistudio.com/T178384
No magazine data in there