Well, I have a trigger that it's supposed to follow the player unit and rotate and everything..
It works only for the "choose hero" part of the map.. (which is the first part)
but when the chosen hero is created and placed where it belongs, right after being chosen, the camera get's locked or something. It just stay in the "hero selection" area of the map..
I'll paste the code here.. I hope someone can help me with this..
It works only for the "choose hero" part of the map.. (which is the first part)
but when the chosen hero is created and placed where it belongs, right after being chosen, the camera get's locked or something. It just stay in the "hero selection" area of the map..
I'll paste the code here.. I hope someone can help me with this..
-
Set Camera 1
-
Events
-
Time - Every 0.01 seconds of game time
-
-
Conditions
-
Actions
-
Player Group - Pick every player in Player Group - Player 1 (Red) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
CurrentCamera[(Player number of (Picked player))] Equal to 1
-
-
Then - Actions
-
Camera - Apply Camera 001 <gen> for (Picked player) over 0.00 seconds
-
Camera - Set (Picked player)'s camera Rotation to (Facing of PlayersHero[(Player number of (Picked player))]) over 0.00 seconds
-
Camera - Lock camera target for (Picked player) to PlayersHero[(Player number of (Picked player))], offset by (0.00, 0.00) using The unit's rotation
-
-
Else - Actions
-
-
-
-
Player Group - Pick every player in Player Group - Player 2 (Blue) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
CurrentCamera[(Player number of (Picked player))] Equal to 1
-
-
Then - Actions
-
Camera - Apply Camera 001 <gen> for (Picked player) over 0.00 seconds
-
Camera - Set (Picked player)'s camera Rotation to (Facing of PlayersHero[(Player number of (Picked player))]) over 0.00 seconds
-
-
Else - Actions
-
-
-
-
Player Group - Pick every player in Player Group - Player 3 (Teal) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
CurrentCamera[(Player number of (Picked player))] Equal to 1
-
-
Then - Actions
-
Camera - Apply Camera 001 <gen> for (Picked player) over 0.00 seconds
-
Camera - Set (Picked player)'s camera Rotation to (Facing of PlayersHero[(Player number of (Picked player))]) over 0.00 seconds
-
-
Else - Actions
-
-
-
-
Player Group - Pick every player in Player Group - Player 4 (Purple) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
CurrentCamera[(Player number of (Picked player))] Equal to 1
-
-
Then - Actions
-
Camera - Apply Camera 001 <gen> for (Picked player) over 0.00 seconds
-
Camera - Set (Picked player)'s camera Rotation to (Facing of PlayersHero[(Player number of (Picked player))]) over 0.00 seconds
-
-
Else - Actions
-
-
-
-
-