UPDATE (OLD):
> I've updated this system now. It now increases the cameras height due the height your unit is at.
> And a little code edit.
> And finally added a Ingame Screen Shot
UPDATE (Version 2a):
> I've made the system run faster and I've increased the period loop from 0.02 > 0.03 to avoid abit lagg.
> Fixed a leak (Player Group leak).
> Added a new command (-unstuck) this will unstuck your camera from a unit.
> Added a new trigger that allow you to change your cameraunit.
> Added an option that allow you to pick if you want the players to be able to stuck their camera to friends units.
> Fixed that when your camera unit dies, your camera will be automatically reseted and unstucked.
UPDATE (Version 2b):
> Fixed an issue with the rotating of the camera. Before the camera could spin heavily around and didn't stop, but it's fixed now.
> Added an function called
-
Custom script: call CameraOn(1, true)
with this function you're enabled to disable or enable a specific players camera.
You can simply edit the event to the one you want.
UPDATE (Version 2c)
> Added an option that allow you to change the maximum and minimum distance the camera can be from an unit and the maximum and minimum height your camera can have.
-
-------- Change the maximum and minimum camera options --------
-
-------- ---- --------
-
-------- This is the maximum distance the camera can be from an unit. --------
-
Set MaxDistance = 1750.00
-
-------- This is the minimum distance the camera can be from an unit. --------
-
Set MinDistance = 400.00
-
-------- This is how far up the camera can be, less number = higher. --------
-
Set MaxAngleOfAttack = 270.00
-
-------- This is how far down the camera can be, high number = lower --------
-
Set MinAngleOfAttack = 340.00
this can be found in the CameraSystem Initialization trigger.
UPDATE (Version 2d)
> The four variables MaxDistance, MinDistance, MaxAngleOfAttack and MinAngleOfAttack are now arrays to allow players to have different values.