• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your 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