• 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.

key arrow camera rotates

Status
Not open for further replies.
Level 13
Joined
Oct 28, 2019
Messages
523
  • 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 45
Joined
Feb 27, 2007
Messages
5,578
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