function Trig_Updating_Camera_Actions takes nothing returns nothing
set udg_Loc = GetUnitLoc(udg_CurrentUnit)
set udg_TerrainHeight = GetLocationZ(udg_Loc)
call SetCameraFieldForPlayer( Player(0), CAMERA_FIELD_TARGET_DISTANCE, 750.00, 0.10 )
call SetCameraFieldForPlayer( Player(0), CAMERA_FIELD_ANGLE_OF_ATTACK, 345.00, 0.10 )
call SetCameraFieldForPlayer( Player(0), CAMERA_FIELD_ZOFFSET, ( 100.00 + ( GetUnitFlyHeight(udg_CurrentUnit) + ( udg_TerrainHeight / 2.00 ) ) ), 0.10 )
call SetCameraFieldForPlayer( Player(0), CAMERA_FIELD_ROTATION, GetUnitFacing(udg_CurrentUnit), 0.10 )
endfunction
//===========================================================================
function InitTrig_Updating_Camera takes nothing returns nothing
set gg_trg_Updating_Camera = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Updating_Camera, 0.01 )
call TriggerAddAction( gg_trg_Updating_Camera, function Trig_Updating_Camera_Actions )
endfunction