In war3 I had a way but i dont have triggs anymore. A flying unit is changing altitude every second (I use Periodic Event with change height to (current) + 1). I created a Camera Object that looks down on the unit straight from above and close to the unit. I want that camera to go up every second or follow upward as the unit goes up (same for downward). Also if the camera can hide the black space outside the map as the unit goes higher and higher - that would be good to do too (if it requires FOV or other camera fields im not sure which to change). Mostly need to figure out the first. Following Unit or Unit Group is I think only horizontally. What is the way?
You can change camera depth of field and pitch and roll yawl.. through "camera" type triggers such as cameraSetValue
the one you want (i think) is CameraUseHeightDisplacement
"When this is enabled, and the camera is following a flying unit, the camera will adjust its height to ensure the flying unit stays visible when the camera zooms in." (blizz help prompt)
Possibly also CameraSetVerticalFieldOfView
"By default, the horizontal screen space is preserved between aspect ratios, and the vertical space gets cropped or expanded as necessary. When vertical field of view is turned on, the vertical screen space will be preserved between aspect ratios, and the horizontal space will get cropped or expanded as necessary."
and CameraUseHeightSmoothing "When this is enabled, the camera will transition between terrain height changes smoothly."
i just started on this part of the editor sorry i can't help more :)
funny: took me super long to understand how to make the camera stop following a unit (once i had made it follow one). :D
the CameraFollowUnit help prompt said to select "any unit" for it to stop and i couldn't get how to get that "field" set properly...
Until i tried again (week later lol) and slapped myself silly when i understood that it just meant "leave this command's unit selection field as is (before you assigned it to a unit) to stop the camera from following the previous CameraFollow action trigger/order sent"
(i used copy pasting and so did not figure out quick that the default setting on this trigger/action is the "any unit" the prompt was referring to :D )
I found a way, though I was imagining a more smooth way to do camera follow upward. My Periodic event is every 1.0 second and in it I use this change camera property to make it do so:
Camera - Apply Camera 001 for player 1 over 0.0 seconds with Existing Velocity% initial velocity, 10% deceleration, and Include Target
Camera - Set Camera 001 Height Offset to ((Camera 001 Height Offset) + (ΔA / 3.0))
Or I can use another periodic event with every 0.1 sec to move 0.1 up - only because this event is before the game is done, otherwise such 0.1 periodic event is no good. I know about Camera - Turn camera height displacement On/Off but this would start looking at the unit from below if the unit went upward higher than the camera and changing the Z offset is the only way to follow always from top.
Wouldn't it be easier to change it according to the unit's height?
Every 0.3 Seconds
Camera - Apply camera object Height Offset (Height of (YOURUNIT)) for player 1 over 0.2 seconds with Existing Velocity% initial velocity and 10.0% deceleration
With this the camera always follow the selected unit's height.
I decided to use 'every 0.1 s' for smoother moving where I add the above you posted. And changing height to random between 0.075 and 0.1 over 0.1 sec and all under an Every 0.1 seconds Real Time. Now I only have to see if I can limit the camera to not view the edges of the map as it goes up, if there is a way, if not this will not be a big deal.
In war3 I had a way but i dont have triggs anymore. A flying unit is changing altitude every second (I use Periodic Event with change height to (current) + 1). I created a Camera Object that looks down on the unit straight from above and close to the unit. I want that camera to go up every second or follow upward as the unit goes up (same for downward). Also if the camera can hide the black space outside the map as the unit goes higher and higher - that would be good to do too (if it requires FOV or other camera fields im not sure which to change). Mostly need to figure out the first. Following Unit or Unit Group is I think only horizontally. What is the way?
You can change camera depth of field and pitch and roll yawl.. through "camera" type triggers such as cameraSetValue
the one you want (i think) is CameraUseHeightDisplacement
"When this is enabled, and the camera is following a flying unit, the camera will adjust its height to ensure the flying unit stays visible when the camera zooms in." (blizz help prompt)
Possibly also CameraSetVerticalFieldOfView
"By default, the horizontal screen space is preserved between aspect ratios, and the vertical space gets cropped or expanded as necessary. When vertical field of view is turned on, the vertical screen space will be preserved between aspect ratios, and the horizontal space will get cropped or expanded as necessary."
and CameraUseHeightSmoothing "When this is enabled, the camera will transition between terrain height changes smoothly."
i just started on this part of the editor sorry i can't help more :)
funny: took me super long to understand how to make the camera stop following a unit (once i had made it follow one). :D
the CameraFollowUnit help prompt said to select "any unit" for it to stop and i couldn't get how to get that "field" set properly...
Until i tried again (week later lol) and slapped myself silly when i understood that it just meant "leave this command's unit selection field as is (before you assigned it to a unit) to stop the camera from following the previous CameraFollow action trigger/order sent"
(i used copy pasting and so did not figure out quick that the default setting on this trigger/action is the "any unit" the prompt was referring to :D )
Have the height change effect in a trigger event, then use that to move the camera up using the camera trigger functions.
Still alive and kicking, just busy.
My guide to the trigger editor (still a work in progress)
I found a way, though I was imagining a more smooth way to do camera follow upward. My Periodic event is every 1.0 second and in it I use this change camera property to make it do so:
Camera - Apply Camera 001 for player 1 over 0.0 seconds with Existing Velocity% initial velocity, 10% deceleration, and Include Target
Camera - Set Camera 001 Height Offset to ((Camera 001 Height Offset) + (ΔA / 3.0))
Or I can use another periodic event with every 0.1 sec to move 0.1 up - only because this event is before the game is done, otherwise such 0.1 periodic event is no good. I know about Camera - Turn camera height displacement On/Off but this would start looking at the unit from below if the unit went upward higher than the camera and changing the Z offset is the only way to follow always from top.
Wouldn't it be easier to change it according to the unit's height?
Every 0.3 Seconds
Camera - Apply camera object Height Offset (Height of (YOURUNIT)) for player 1 over 0.2 seconds with Existing Velocity% initial velocity and 10.0% deceleration
With this the camera always follow the selected unit's height.
@Skoite: Go
Yes, it is better, thanks, so run once these and
I decided to use 'every 0.1 s' for smoother moving where I add the above you posted. And changing height to random between 0.075 and 0.1 over 0.1 sec and all under an Every 0.1 seconds Real Time. Now I only have to see if I can limit the camera to not view the edges of the map as it goes up, if there is a way, if not this will not be a big deal.
Change the Distance - Far Clip in your Camera 001. It determines how far your camera can see.
@Skoite: Go
Thanks again Skoite :), i'll be on my own with this