- Joined
- Oct 9, 2015
- Messages
- 721
So I looked arround for a while and can't seem to think a solution that works for me, so how can I make the camera adjust to terrain height in a third person camera system?
-
Camera
-
Events
-
Time - Every 0.02 seconds of game time
-
-
Conditions
-
Actions
-
For each (Integer A) from 1 to 12, do (Actions)
-
Loop - Actions
-
Set Location[(Integer A)] = (Position of Unit[(Integer A)])
-
Set Heigth[(Integer A)] = (Height of (Region centered at Location[(Integer A)] with size (0.50, 0.50)))
-
Camera - Lock camera target for (Player((Integer A))) to Unit[(Integer A)], offset by (0.00, 0.00) using The unit's rotation
-
Camera - Set (Player((Integer A)))'s camera Height Offset to (Heigth[(Integer A)] + 100.00) over 0.50 seconds
-
Custom script: call RemoveLocation(udg_Location[GetForLoopIndexA()])
-
-
-
-