• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

I think a horizontal cam movemnt can be made with the mouse SCROLL (read)

Status
Not open for further replies.
Level 21
Joined
Apr 8, 2017
Messages
1,530
file.php




Examples
x = current camera angle

d = last camera angle




IF
"x" HIGHER THAN "d"
THEN
Rotate cam to the left


IF
"x" LOWER THAN "d"
THEN
Rotate cam to the right
 
A sentence or two can go a long way to describe the help you need. If this is about detecting scrolling then do these comparisons you mentioned on a .03125 interval. If the Angle of attack is lower then you scrolled down, otherwise it's up. You can then change the direction of what you want to move based on the scroll direction.
 
Level 9
Joined
Jul 30, 2018
Messages
445
I don't think there is a native to get the "value" of the mouse scroll? Haven't looked into the mouse scroll that deeply, but my gut feeling is telling it's pretty much hard-coded for the default zoom function.
 
Status
Not open for further replies.
Top