HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Adjusting camera height

07-25-2002, 07:15 AM#1
Karma Patrol
I have been playing around with adjusting camera view properties using triggers and I have run into a problem. It seems that I cannot adjust the camera height above the terrain (the Z offset). It seems that you can adjust everything BUT the Z offset of the camera view. I was wondering if anyone could help me with this problem. Thanks!
07-25-2002, 12:22 PM#2
Guest
Well, I've already tried that, but with no success.

anyway, a little trick is to build some height under your camera, and play with the angle and distance, but that will only be useful if your camera is constrained to that point (or line), as moving back/forward will make your camera go into the wall. If it is a static camera, that may do the trick. Also, if you can, lower the area where the target is.


!

Well, I've never tried, but... just wondering. If you lock a camera to a target unit that is aerial/flying/ at your desired height... would that help? I don't remember If you can specify to what part of the unit attach the cam. (never tried, just thinking, and don't have Worlded near to test it)

but I've seen no other way to do it. Sorry.
07-27-2002, 06:25 AM#3
Desolate
What you need to do is convert the trigger to custom text, and then, find where the other actions for that trigger for, and add this line to it:

call SetCameraFieldForPlayer( Player(NUMBER), CAMERA_FIELD_ZOFFSET, ZOFFSET, DURATION )

Where
- NUMBER is the player number, minus 1 (ie Player 2 is Player(1)).
- OFFSET is the Z offset.
- DURATION is the amount of time over which to apply the new offset.


An alternative is to switch to the camera layer in the editor, then create a camera object, and set all the values for that. Then just use the trigger "Camera - Apply Camera Object (Timed)".