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

Adjust camera angle to match unit... help?

Status
Not open for further replies.
Level 3
Joined
Nov 11, 2007
Messages
50
I'm trying to adjust the camera angle to match the same angle as a unit, normally, this wouldn't be bad, if it weren't for a few small restrictions. The camera is locked to the unit, I want the camera to rotate around the unit as the unit turns. With what I can find in GUI, there is no way to refer to the camera's current rotation, or simply say "Set cam rotation to #" only "Rotate camera by #"

If someone could tell me what I'm doing wrong and help me fix the problem in GUI, I would be VERY thankful.

If someone could simply give me a JASS script to set cam rotation to the same as the unit rotation, that should work just as well.
 
Maybe you could add this trigger:

Code:
Event - Every 0.1 seconds
Condition - /
Action - Camera - Lock camera target for Player 1 (Red) to (Triggering unit), offset by (0.00, 0.00) using The unit's rotation
 
Here's a camera lock trigger which locks the camera to a 3rd person perspective.
Just change the desired actions to the values you want for your camera
  • kamera
    • Events
      • Time - Every 0.25 seconds of game time
    • Conditions
    • Aktionen
      • Camera - Change camera smoothing factor to 1.00
      • Camera - Lock camera target for Player x to *your unit*, offset by (0.00, 0.00) using a unit's rotation
      • Camera - Set Player x's camera rotation to (Facing of *Your unit*) over 0.25 seconds
      • Camera - Set Player x's camera perspective to 350.00 over 0.00 seconds
      • Camera - Set Player x's camera Distance to target to 550.00 over 0.00 seconds
      • Camera - Set Player x's camera sight to 200.00 over 0.00 seconds
      • Camera - Set Player x's camera height-offset to 20.00 over 0.00 seconds
And no, it's not mui. If you want it mui, tell me ^^
 
Yea, thanks Squiggy. Thats what I found last night shortly after I posted here on the forum. I tried posting my discovery 3 times though, and each time the forum become unresponsive, even though I could go to any other website just fine.

Edit:
Yay! it let me post :D
 
Yes.
Having them will lock the cam to a certain position behind the unit.
Without them the cam will move with the unit, but you can for example use the scroll to adjust the angle of attack of the camera.
It is your choice I just want to give it to you.
 
Actually, I would prefer to have the cam locked down like his trigger would indicate. But I've noticed that moving the scroll wheel reverts it to normal. Any way to disable the scroll wheel?
 
Doh! Correct, there were just a couple functions that I only needed done once, unless someone adjust the camera back. Didn't think to just have them repeat aswell.
 
Status
Not open for further replies.
Back
Top