Warcraft III resources & community, 2003–2006 · archived

Camera Help

8 posts
#1

Camera Help

How would you keep a camera locked onto a unit's rotation. I've tried Lock Camera Target For (Triggering Player) to (Last Created Unit), offset by (0.00, 0.00)using The unit's rotation but the camera doesn't lock onto the unit's rotation, just lcoks onto its position. How would I have the camera lock onto the units rotation as well sa it's position?
#2
u could make this trigger

every 0.1 sec of the game
lock cam on hero

but i think there r better ways (I thought pam cam worked 2)
#3
his question is: how to lock the camera AND let it rotate when the hero rotates...

so when the hero faces e.g. 90°, the camera should also be facing 90°...

but I don't know how to do it...
#4
I know. but if u pan the cam every 0.1 sec, it also pans if u rotate, get it? :P
#5
hmm I'm not sure of that... I even doubt it will work, but who doesn't try, doesn't know... So I'll try it...
#6
Camera
Events
Time - Every 0.02 seconds of game time
Conditions
Actions
Camera - Pan camera for (Picked player) to ((Position of (Picked unit)) offset by 0.00 towards (Facing of (Picked unit)) degrees) over 0.00 seconds
Camera - Set (Picked player)'s camera Rotation to (Facing of (Picked unit)) over 0.50 seconds
#7
yeah thanks... I hope this doesn't cause too much lag, it already is a laggy game with all the movement calulations and complicated stuff...
#8
I used 0.02 rather than 0.01 to reduce lag ;\