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

[Trigger] Camera

Status
Not open for further replies.
Level 18
Joined
May 27, 2007
Messages
1,689
i am making a map and i want the camera to be positioned behind the unit and follow the unit wherever it goes, i have played around with it quite a bit but cant seem to get it to work this is what i have

  • Camera
    • Events
      • Time - Every 0.01 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
            • Then - Actions
              • Camera - Lock camera target for (Owner of (Picked unit)) to (Picked unit), offset by (0.00, 0.00) using The unit's rotation
              • Camera - Rotate camera (Facing of (Picked unit)) degrees around (Position of (Picked unit)) for (Owner of (Picked unit)) over 0.00 seconds
            • Else - Actions
              • Do nothing
BTW i wasnt sure where to post this so i put it here
 
Level 13
Joined
Nov 22, 2006
Messages
1,260
But the camera can't go behind all units, I don't know how did you imagine that situation, why do you have if then else if you don't have an "if", that's pointless then, you just need to rotate it, not locking it every time
 
Status
Not open for further replies.
Top