• 🏆 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!

:) tRiggeR's Event!

Status
Not open for further replies.
Level 9
Joined
Mar 31, 2011
Messages
496
What will happen if I used two events for the looping? Does it do something?

StartCamForTeam1
  • StartCamTeam1
    • Events
      • Unit - A unit enters HeroSpawn1 <gen>
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • Set CameraUnits[(Player number of (Owner of (Triggering unit)))] = (Triggering unit)
      • Camera - Lock camera target for (Owner of (Triggering unit)) to (Triggering unit), offset by (0.00, 0.00) using Default rotation
      • Camera - Set (Owner of (Triggering unit))'s camera Angle of attack to 345.00 over 0.00 seconds
      • Player Group - Add (Owner of (Triggering unit)) to TempPG
      • Trigger - Turn on Loop <gen>
StartCamForTeam2
  • StartCamTeam2
    • Events
      • Unit - A unit enters HeroSpawn2 <gen>
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • Set CameraUnits[(Player number of (Owner of (Triggering unit)))] = (Triggering unit)
      • Camera - Lock camera target for (Owner of (Triggering unit)) to (Triggering unit), offset by (0.00, 0.00) using Default rotation
      • Camera - Set (Owner of (Triggering unit))'s camera Angle of attack to 345.00 over 0.00 seconds
      • Player Group - Add (Owner of (Triggering unit)) to TempPG
      • Trigger - Turn on Loop <gen>
Loop
  • Loop
    • Events
      • Time - Every 0.03 seconds of game time
    • Conditions
    • Actions
      • Player Group - Pick every player in TempPG and do (Actions)
        • Loop - Actions
          • Camera - Set (Picked player)'s camera Distance to target to 900.00 over 0.00 seconds
          • Camera - Set (Picked player)'s camera Rotation to (Facing of CameraUnits[(Player number of (Picked player))]) over 0.30 seconds
Disable Camera
  • EndCam
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • Camera - Reset camera for (Owner of (Triggering unit)) to standard game-view over 0.00 seconds
      • Player Group - Remove (Owner of (Triggering unit)) from TempPG
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Number of players in TempPG) Equal to 0
        • Then - Actions
          • Trigger - Turn off Loop <gen>
        • Else - Actions
 
Status
Not open for further replies.
Top