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

Need camera help PLS!

Status
Not open for further replies.
ummmm, well youd have to make the angle update all the time. Since you dont want it locked, you just want it tracing the rotation of the unit then you should do:

( - I created a camera called CameraAnglesAim, which had my specified angles on it
- I created a unit, and set him to Unit1)

Events
Time - Every 0.10 seconds of game time

Conditions
(if you had any)

Actions
Player Group - Pick every player in Player Group - Player 1 (Red) and do (Actions)
Loop - Actions
Camera - Set (Picked player)'s camera Rotation to (Facing of Unit1) over 1.00 seconds
Camera - Set (Picked player)'s camera Distance to target to (Distance to target of CameraAnglesAim <gen>) over 0.00 seconds
Camera - Set (Picked player)'s camera Angle of attack to (Angle of attack of CameraAnglesAim <gen>) over 0.00 seconds
Camera - Set (Picked player)'s camera Field of view to (Field of view of CameraAnglesAim <gen>) over 0.00 seconds
Camera - Set (Picked player)'s camera Height Offset to (Field of view of CameraAnglesAim <gen>) over 0.00 seconds



So basically, every 0.1 seconds of the game, the camera will adjust angles in accordance with the unit chosen. But as you asked, it will not lock onto that unit.

The code above could be improved by only having the roation changing every 0.1 seconds, but i couldnt be bothered. GL HF!
 
Status
Not open for further replies.
Back
Top