lock camera problem

Status
Not open for further replies.
Level 3
Joined
Oct 23, 2013
Messages
17
i locked the camera to a unit then it was ok
but when i tested it the camera doesn't seem to be in the same height as the unit is
whats the prob here??

2nkktwg.png


help lol!
 
Diagonally? Well, you can rotate horizontally (rotation), and vertically (angle of attack). I'm assuming you're referring to angle of attack.

You should just use "Set Camera Field (timed)". You can open the camera palette, make a camera, and then fiddle with the options to figure out what kind of camera properties you want. For more info on cameras, see:
https://www.hiveworkshop.com/forums/general-mapping-tutorials-278/cameras-160369/
It has some animations that may help you understand what each field does.
 
In your pic you increase the terrain height, so checking cliff's height wont help, you need to check the curent Z.

  • Aktionen
  • Set Point = (Position of (YourHero))
  • Custom script: set udg_Z = GetLocationZ(udg_Point)
  • Kamera - Set Spieler 1 (Rot)'s camera Distance to (YourDefault + Z) over 1.00 seconds
  • Custom script: call RemoveLocation (udg_Point)

But if you make so huge height differences (without cliffs) it will always be a bit like this I think, if you are next to these borders. (but maybe try to set default distance very high, will help a bit.. like 2900 maybe)
 
it should actually be:

  • trigger
    • Events
      • Time - Every 0.10 seconds of game time
    • Conditions
    • Actions
      • Set point = (Position of (whatever))
      • Custom script: set udg_locZ = 0
      • Custom script: if GetLocalPlayer() == GetOwningPlayer(udg_whatever) then
      • Custom script: set udg_locZ = GetLocationZ(udg_point)
      • Custom script: endif
      • Camera - Set Player 1 (Red)'s camera Distance to target to (your Default + locZ) over 0.00 seconds
      • Custom script: call RemoveLocation(udg_point)
this is because GetLocationZ is very dangerous if you use terrain deforation of any sort in your map, it will very likely cause desync and crash one or multiple players games
 
Status
Not open for further replies.
Back
Top