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

Simple Zloc Trigger Error

Status
Not open for further replies.
  • Player Group - Pick every player in (All players) and do (Actions)
    • Loop - Actions
      • Set PN = (Player number of (Picked player))
      • Set zloco = (Position of PlayerHero[PN])
      • Custom script: Set udg_zheighto = GetLocationZ(udg_zloco)
      • Set zlocf = (zloco offset by Distance[PN] towards (Facing of PlayerHero[PN]) degrees)
      • Custom script: Set udg_zhightf = GetLocationZ(udg_zlocf)
      • Set zlocb = (zloco offset by Distance[PN] towards ((Facing of PlayerHero[PN]) - 180.00) degrees)
      • Custom script: Set udg_zhightb = GetLocationZ(udg_zlocb)
      • Camera - Pan camera for Player 1 (Red) to zloco over 0.03 seconds
      • Camera - Lock camera target for (Picked player) to PlayerHero[PN], offset by (0.00, 0.00) using Default rotation
      • Camera - Set (Picked player)'s camera Rotation to (Facing of PlayerHero[PN]) over 0.00 seconds
        • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • zheightf Greater than (>) zheighto
          • Then - Actions
            • Camera - Set (Picked player)'s camera Angle of attack to (AngleOfAttack[PN] + (zheighto - zheightf)) over 0.00 seconds
          • Else - Actions
What is wrong it says syntax error... i Dont get it...

And Yes they are real, and the points are points
 
Status
Not open for further replies.
Top