• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

key arrow camera rotates

Status
Not open for further replies.
Level 14
Joined
Oct 28, 2019
Messages
536
  • 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 ?
 
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.
Back
Top