function SetCameraZ takes real z returns nothing
set z = GetCameraField(CAMERA_FIELD_ZOFFSET)+z-GetCameraTargetPositionZ()
call SetCameraField(CAMERA_FIELD_ZOFFSET,z,- 0.01)
call SetCameraField(CAMERA_FIELD_ZOFFSET,z,0.01)
endfunction
Untitled Trigger 004
Events
Time - Every 0.01 seconds of game time
Conditions
Actions
Set Unit_Loc= (Position of Unit)
Custom script: set udg_LocZ=GetLocationZ(udg_Unit_Loc)
Custom script: call SetCameraZ(udg_LocZ+400)
Custom script: call RemoveLocation (udg_Unit_Loc)