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

a question about the camera...

Status
Not open for further replies.
Level 2
Joined
Aug 18, 2004
Messages
17
i have a problem with a camera function, and i've heard you coded your own, can you tell me how to change the z-offset of the cam if the unit stands on a hill? its hard to explain, i try to make a ascii pic:
1.
__
\__U___<-C
everything is alright, the camera follows the unit
2.
___U___
_/ \___<-C
the cam doesnt change the z-offset! (you can't see the unit)

can you help me?
 
When you have the cam locked, i guess you lock it every 0.1 sec right? Now when you do that trigger, set the camera Z value to the Z value of the unit. This should give them the same height all the time.
 
i tried it, but there is no function that returns the z value of a unit! i use the camera system of WEU. if i do a periodic event with set cam's height offset to target z of current cam, the camera flies to the unreachable heights :-( . some ideas?
 
LoA's camera does not follow when the height changes rapidly, therefor i implented a function that makes u able to control the cameras angle so that it does not bug in those situations, however, there's no function that ive found that changes the Z of camera as soon as unit moves on higher groud, if u just set it to like... 130 or something from start it'll work with ground height that gets higher slowly, not instantly.
 
thx, i will try it. did you have the following problem with the water too? if the unit is on a bridge or sth. or in front of a lake, the camera rapidly goes down.
 
with legescies tides of the serpent the camera stays the same the whole time and they go up and down but their is no difference
 
now it works. i didnt need the function, i only changed some z-offset and AoA values, thx guys.
 
Well, no problem, i just wonder, does legacies have any mountains? i'd like to know... i never saw any...
 
well i was playing it yesterday and well when u go up the camera jumps up to fix back to the view that it uses the whole game but there is a small hill that makes the camera change
 
Status
Not open for further replies.
Back
Top