• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

third person camera help

Status
Not open for further replies.
Level 3
Joined
Aug 18, 2009
Messages
46
i found a video on how to make a 3rd person cam on youtube, it helped but now i want to know how to change the 3rd person cam from one unit to another. Okay i have the 3rd person camera on the "hero selector (wisp)" and when i choose a hero the camera just goes back into the regular viewing state. Can anyone solve my problem? :)

  • Initialization
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Camera - Lock camera target for Player 1 (Red) to Hero Chooser 0000 <gen>, offset by (0.00, 0.00) using The unit's rotation
  • Camera
    • Events
      • Time - Every 0.01 seconds of game time
    • Conditions
    • Actions
      • Camera - Set (Owner of (Triggering unit))'s camera Distance to target to 1200.00 over 0.10 seconds
      • Camera - Set (Owner of (Triggering unit))'s camera Angle of attack to 260.00 over 0.10 seconds
      • Camera - Set (Owner of (Triggering unit))'s camera Height Offset to 50.00 over 0.10 seconds
      • Camera - Set Player 1 (Red)'s camera Rotation to (Facing of Hero Chooser 0000 <gen>) over 0.10 seconds
sorry if im violating any rule if i have im new
 
Level 37
Joined
Mar 6, 2006
Messages
9,240
  • Untitled Trigger 007
    • Events
      • Player - Player 1 (Red) Selects a unit
      • Player - Player 2 (Blue) Selects a unit
      • Player - Player 3 (Teal) Selects a unit
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Unit-type of (Triggering unit)) Equal to Footman
          • (Unit-type of (Triggering unit)) Equal to Knight
      • Player_Boolean[(Player number of (Owner of (Triggering unit)))] Equal to False
    • Actions
      • Set Player_Boolean[(Player number of (Owner of (Triggering unit)))] = True
      • Camera - Reset camera for (Owner of (Triggering unit)) to standard game-view over 2.00 seconds
  • Untitled Trigger 010
    • Events
      • Time - Every 0.03 seconds of game time
    • Conditions
    • Actions
      • Set Temp_Integer_1 = 0
      • For each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Player_Boolean[(Integer A)] Equal to True
            • Then - Actions
              • Set Temp_Integer_1 = (Temp_Integer_1 + 1)
            • Else - Actions
              • Camera - Set (Player((Integer A)))'s camera Distance to target to 1200.00 over 0.10 seconds
              • Camera - Set (Player((Integer A)))'s camera Angle of attack to 260.00 over 0.10 seconds
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Temp_Integer_1 Equal to (Number of players in (All players controlled by a User player))
        • Then - Actions
          • Trigger - Turn off (This trigger)
          • Trigger - Turn off Untitled Trigger 007 <gen>
        • Else - Actions
This way it only works once for every player. Modify as is needed.

Your camera trigger won't work since there is no triggering unit.
 
Level 37
Joined
Mar 6, 2006
Messages
9,240
  • selection
    • Events
      • Player - Player 1 (Red) Selects a unit
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Unit-type of (Triggering unit)) Equal to Footman
          • (Unit-type of (Triggering unit)) Equal to Knight
    • Actions
      • Trigger - Turn off (This trigger)
      • Trigger - Turn off (camera)
      • Camera - Reset camera for (Player 1) to standard game-view over 2.00 seconds
  • camera
    • Events
      • Time - Every 0.03 seconds of game time
    • Conditions
    • Actions
      • Camera - Set Player 1's camera Distance to target to 1200.00 over 0.10 seconds
  • etc...
The unit types are unit types of your units.
 
Status
Not open for further replies.
Top