That_one_dude
T
That_one_dude
i am making a map, and i am trying to make the camra folow a unit. Do any of you know how to make the camra folow a unit so if the unit turns, the camra turns to? please post if you know.
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.
Camera - Set Player 1 (Red)'s camera Rotation to (Facing of (Triggering unit)) over 0.00 seconds
Time - Every 0.10 seconds of game time
Camera - Lock camera target for Player 1 (Red) to (Triggering unit), offset by (0.00, 0.00) using The unit's rotation
Camera - Reset camera for (Triggering player) to standard game-view over 1.50 seconds
Apply First Person
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 1

Then - Actions


-------- Specified for what ever unit type you want --------


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


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


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


Camera - Set Player 9 (Gray)'s camera Height Offset to ((Current flying height of Selected_Unit) + 130.00) over 0.01 seconds


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


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

Else - Actions
Selected_Unit
Events

Player - Player 9 (Gray) Selects a unit
If (All Conditions are True) then do (Then Actions) else do (Else Actions)

If - Conditions


((Triggering unit) is A structure) Equal to False


(Triggering unit) Not equal to HERO

Then - Actions


Trigger - Turn on Camera Rotation <gen>


Set Selected_Unit = (Triggering unit)


Set CamSetting = 1


Camera - Lock camera target for (Triggering player) to (Triggering unit), offset by (0.00, 0.00) using Default rotation

Else - Actions


Do nothing
Conditions

CamSetting Equal to 0
Actions

Trigger - Turn off Camera Rotation <gen>

Trigger - Turn off Apply First Person <gen>

Set Selected_Unit = No unit

Camera - Reset camera for (Triggering player) to standard game-view over 1.50 seconds
Camera Rotation

Events


Time - Every 1.00 seconds of game time

Conditions

Actions


Camera - Set Player 9 (Gray)'s camera Rotation to (Facing of Selected_Unit) over 0.80 seconds
I didn't understand why not use "Unit's rotation", it was given to us to use ...
I never used it so correct me if im wrong x.x
