HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Modifying Camera height

03-23-2009, 12:16 AM#1
darkwulfv
Okay, so I want my players to have their camera slightly above the normal default, but i also want it to auto-fix should they accidentally scroll in. However, I can't find any action that modifies camera height without also moving it. What do I use to make the camera only move up when necessary (to X height), without also modifying its current view?
03-23-2009, 12:34 AM#2
TotallyAwesome
SetCameraField, just use ZOFFSET
03-23-2009, 12:51 AM#3
Fledermaus
And use a periodic timer to keep setting the ZOFFSET.
03-23-2009, 01:52 AM#4
Toadcop
http://www.wc3c.net/showthread.php?t...ght=SetCameraZ
03-23-2009, 03:33 AM#5
darkwulfv
Hmm... I think I should've added that I'm referring to the game camera, not a specific camera. Ooops. However, nonetheless, SetCameraField didn't seem to have a z-offset field. It just took a camera, a value, and a duration.

EDIT: Nevermind, Toadcop's link (you should've said to look at the second post...) got me what I needed. Now to test.
03-23-2009, 03:37 AM#6
Bobo_The_Kodo
...
Collapse JASS:
call SetCameraField( CAMERA_FIELD_Z_OFFSET, 100000000000, 0. ) //uber far zoom out
03-23-2009, 05:01 AM#7
darkwulfv
Yeah, but after doing some reading I guess the z value can get wonked out, so I'm just gonna use TC's function since it seems reliable enough.
03-24-2009, 05:17 PM#8
Anitarf
It only gets moothed out over uneven terrain, I don't think it matters in your case.