• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

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
 
  • 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.
 
  • 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.
Back
Top