detecting mousewheel motion

wellwish3r

wishes wells.
Reaction score
52
Is there any way to detect the mouse wheel motion, or ally the camera zoom to camera other than the default one (ie a 3rd person cam)?
 

Gwypaas

hook DoNothing MakeGUIUsersCrash
Reaction score
50
No, the only things you can detect is arrow key pressing, and mouse clicking with trackables. You can't even see the difference of Left/Right button clicks.
 

uberfoop

~=Admiral Stukov=~
Reaction score
177
You can't even see the difference of Left/Right button clicks.
If it's while giving orders you can, since right clicks come through as 'smart.'

You can also detect escape button hits via the player skips cinematic event.



The SetCameraField function allows you to manipulate camera view.

There is a premade bj function SetCameraFieldForPlayer with the GetLocalPlayer stuff built in, though especially for using several field actions it's innefficient:
JASS:

function SetCameraFieldForPlayer takes player whichPlayer,camerafield whichField,real value,real duration returns nothing
    if (GetLocalPlayer() == whichPlayer) then
        call SetCameraField(whichField, value, duration)
    endif
endfunction


Valid whichField inputs are:

CAMERA_FIELD_TARGET_DISTANCE
CAMERA_FIELD_FARZ
CAMERA_FIELD_ANGLE_OF_ATTACK
CAMERA_FIELD_FIELD_OF_VIEW
CAMERA_FIELD_ROLL
CAMERA_FIELD_ROTATION
CAMERA_FIELD_ZOFFSET
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top