• 🏆 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!

key arrow camera rotates

Status
Not open for further replies.
Level 12
Joined
Oct 28, 2019
Messages
475
  • RightKey
    • Events
      • Player - Player 1 (Red) Presses the Right Arrow key
    • Conditions
    • Actions
      • Set VariableSet FacinAngle = (Facing of DummyCamera 0017 <gen>)
      • Unit - Make DummyCamera 0017 <gen> face (FacinAngle + 45.00) over 0.00 seconds
      • Wait 0.01 seconds
      • Camera - Set Player 1 (Red)'s camera Rotation to (Facing of DummyCamera 0017 <gen>) over 0.50 seconds
IDK if theres a way to make this smooth ?
 
Level 39
Joined
Feb 27, 2007
Messages
5,016
Querying the camera's current facing is what necessitates that Wait, so just use the number you already know is correct instead of trying to read it again.
  • RightKey
    • Events
      • Player - Player 1 (Red) Presses the Right Arrow key
    • Conditions
    • Actions
      • Set VariableSet FacinAngle = ((Facing of DummyCamera 0017 <gen>) + 45.00)
      • Unit - Make DummyCamera 0017 <gen> face (FacinAngle) over 0.00 seconds
      • Camera - Set Player 1 (Red)'s camera Rotation to (FacinAngle) over 0.50 seconds
 
Status
Not open for further replies.
Top