Page MenuHomeFeedback Tracker

MouseButtonDown/MouseButtonUp/MouseZChanged event handlers can't be "handled"
Closed, ResolvedPublic

Description

If you bind an "MouseButtonDown"/"MouseButtonUp"/"MouseZChanged" event handler, returning true from the resulting function you called, the default action will still be performed. {F20526}

Details

Legacy ID
967537474
Severity
None
Resolution
Duplicate
Reproducibility
Always
Category
Scripting
Steps To Reproduce
  1. Load the provided repro mission in the editor and preview
  2. Left click which will trigger an event handler defined in the mission and show a hint
  3. Notice that you will still fire your weapon, even if the event handler has returned "true"
  4. Roll your mouse wheel up or down
  5. Notice that the action menu will still open, even if the event handler has returned "true"
Additional Information

Build 0.71.107070

Event Timeline

Sniperwolf572 edited Additional Information. (Show Details)
Sniperwolf572 set Category to Scripting.
Sniperwolf572 set Reproducibility to Always.
Sniperwolf572 set Severity to None.
Sniperwolf572 set Resolution to Duplicate.
Sniperwolf572 set Legacy ID to 967537474.May 7 2016, 3:09 PM
Bohemia added a subscriber: Bohemia.May 7 2016, 3:09 PM

+1, Resolve it please, we cant finish few great addons for A3!

NerdMod added a subscriber: NerdMod.May 7 2016, 3:09 PM

+1 Please fix this and the "MouseZChanged" EH.

gizz46 added a subscriber: gizz46.May 7 2016, 3:09 PM

+1 Please fix this;

xMux added a subscriber: xMux.May 7 2016, 3:09 PM
xMux added a comment.Dec 9 2013, 10:32 AM

+1 Please FIX it ASAP!!!

Oktyabr added a subscriber: Oktyabr.May 7 2016, 3:09 PM

+1 please fix ASAP! It's funny how something so "tiny" and under the surface something can be and still have such a huge impact on future mod development.

+1 porfavor amigos

and whats up with mouse scrollwheel?
i think we need the abibility to setup the scrollwheel in
the configuration. (i think about changing stances or zeroing weapons)

Closing in favor of http://feedback.arma3.com/view.php?id=23679 which has been assigned.

StJimmy removed a subscriber: StJimmy.Apr 3 2017, 3:23 PM

Seems to be still broken with the following code:

finddisplay 46 displayAddEventHandler  ["MouseButtonDown",{hint "still shooting"; true}];

Link to the other task is broken/non existing