Need help whit a 3rd person camera!

Tholdalf

New Member
Reaction score
2
I have used the search just so that you know.

Heres the code but the problem is that i cant make the camera to follow the units rotations :(

Code:
Player 2 camera
    Events
        Player - Player 2 (Blue) Selects a unit
    Conditions
        ((Triggering unit) is A Hero) Equal to True
        (Owner of (Triggering unit)) Equal to (Triggering player)
    Actions
        Camera - Lock camera target for Player 2 (Blue) to (Triggering unit), offset by (0.00, 0.00) using The unit's rotation
        Camera - Set Player 2 (Blue)'s camera Distance to target to 700.00 over 0.25 seconds
        Camera - Set Player 2 (Blue)'s camera Angle of attack to 330.00 over 0.25 seconds
        Camera - Set Player 2 (Blue)'s camera Rotation to (Facing of (Triggering unit)) over 0.25 seconds

Help please.
 

LurkerAspect

Now officially a Super Lurker
Reaction score
118
Code:
Camera - Lock camera target for Player 2 (Blue) to (Triggering unit), offset etc.
This action ALREADY locks the rotation to the units rotation

Code:
Camera - Set Player 2 (Blue)'s camera Rotation to (Facing of (Triggering unit)) over 0.25 seconds
By using this action, you are unlocking the rotation and changing it to a once-off value.

Hope this helps :)
 
T

themtxaw

Guest
i had this problem before too, what i did was i looked at a 1st person tutorial.. not exactly sure wat it was called though,it had basic and advanced camera working (first person) then after i got 1st person, i reajusted the numbers to make it 3rd person so try searching for a 1st person tutorial

sorry, i guess im not being to helpfull...if you want to see mine ask me but i dont think ud get it without the tutorial ( i didn't)
 

Tholdalf

New Member
Reaction score
2
Ok a little more info from me. you choose heroes like in dota (from a tavern) and then there are some cinematics in the game so i dont think it would work whit a periodic. :)
 
B

Bluewind

Guest
Ok a little more info from me. you choose heroes like in dota (from a tavern) and then there are some cinematics in the game so i dont think it would work whit a periodic. :)
Disable the periodic trigger during those cinematics?
 

Tholdalf

New Member
Reaction score
2
Already done that :) so that works and i figured out a way too make it periodic but it still dosnt rotate

Code:
PLayer 2 unit group
    Events
        Unit - A unit enters Hero respawn <gen>
    Conditions
        (Owner of (Triggering unit)) Equal to Player 2 (Blue)
        ((Triggering unit) is A Hero) Equal to True
    Actions
        Unit Group - Add (Triggering unit) to Player2unitgroup

Code:
PLayer 2 camera beta
    Events
        Time - Every 0.02 seconds of game time
    Conditions
    Actions
        Camera - Lock camera target for Player 2 (Blue) to (Random unit from Player2unitgroup), offset by (0.00, 0.00) using Default rotation
        Camera - Set Player 2 (Blue)'s camera Distance to target to 700.00 over 0.25 seconds
        Camera - Set Player 2 (Blue)'s camera Height Offset to 200.00 over 0.25 seconds
        Camera - Set Player 2 (Blue)'s camera Angle of attack to 330.00 over 0.25 seconds
 

Frozenwind

System maker
Reaction score
99
Camera - Lock camera target for Player 2 (Blue) to (Random unit from Player2unitgroup), offset by (0.00, 0.00) using Default rotation
U had to choose using units rotation to let it face the units facing angle all the time?

frozenwind.
 

Tholdalf

New Member
Reaction score
2
I have tried it to but that dosnt work..but this work i gave it
Code:
Camera - Set Player 2 (Blue)'s camera Rotation to (Facing of (Triggering unit)) over 0.25 seconds
Abd bow it work perfect ;)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top