Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Melee Initialization

Events


Time - Every 0.04 seconds of game time

Conditions

Actions


Set CameraPoint = (Position of (YOUR UNIT HERE))


Set CameraHeigh = 100.00


Custom script: call SetCameraFieldForPlayer( Player(0), CAMERA_FIELD_ZOFFSET, ( udg_CameraHeight + GetLocationZ(udg_CameraPoint) ), 0.03 )
Camera - Pan camera for Player 1 (Red) to (Center of (Playable map area)) with height 0.00 above the terrain over 0.00 seconds
Whoops that might be the problem, it was supposed to be
Actions
Set CameraHeigh = 100.00
Actions

Set CameraHeight = 100.00

Actually it does matter as it is used in the custom script. If the variable name and the name used in custom script do not match, it doesn't work.it doesnt really matter, since CameraHeight is a variable name
you can name it Point, and it would still work as a Real variable![]()
No need to be sorry since I haven't seen this way on the forums either.Ah, what a lovely way to do it.
I'm sorry for my previous reply, I have asked this question on this and other forums and have always been told it has to be done by regions.
Events

Time - Every 0.50 seconds of game time
If (All Conditions are True) then do (Then Actions) else do (Else Actions)

If - Conditions


CamSetting Equal to 0

Then - Actions


-------- --------Ground Units not buildings --------


Set CameraHeight = 100.00


Set CameraPoint = (Position of Selected_Unit)


Custom script: call SetCameraFieldForPlayer( Player(8), CAMERA_FIELD_ZOFFSET, ( udg_CameraHeight + GetLocationZ(udg_CameraPoint) ), 0.50 )


Custom script: call RemoveLocation( udg_CameraPoint )


-------- * --- * --------


Camera - Set Player 9 (Gray)'s camera Angle of attack to 338.00 over 0.50 seconds


Camera - Set Player 9 (Gray)'s camera Field of view to 500.00 over 0.50 seconds


Camera - Set Player 9 (Gray)'s camera Roll to 0.00 over 0.50 seconds


Camera - Set Player 9 (Gray)'s camera Distance to target to 190.00 over 0.50 seconds


Camera - Set Player 9 (Gray)'s camera Far Z to 6500.00 over 0.50 seconds

Else - Actions
Yes 100 was only an example that you could set to whatever you want according to your camera system.Alright then, Kitabatake.
I tried the custom script in my map.
I have a couple of "issues".
Setting the variable CameraHeight at 100 leads to the camera being way up in the air, to where you can not see the unit (Picture 1)
