• 🏆 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!
  • ✅ HD Level Design Contest #1 POLL is now OPEN! Check out the stunning visuals of the final entries. 🔗Click here to cast your vote!

[Trigger] Help me in Get Local Player scripts

Not open for further replies.
Level 13
Dec 21, 2010
I have a DDS in my map and whenever a player's hero's HP gets lower than 30% there will be a cinematic filter that fades out and back in ..

  • Damage Event
  • Events
    • Game - DamageEvent becomes Equal to 1.00
  • Conditions
    • DamageEventAmount Greater than 2.00
  • Actions
    • If (All Conditions are True) Then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Percentage life of DamageEventTarget) Less than or equal to 30.00
        • (DamageEventTarget is A Hero) Equal to True
        • ((Owner of DamageEventTarget) controller) Equal to User
      • Then - Actions
        • Set - Temp_Player = (Owner of DamageEventTarget)
        • Custom script: if GetLocalPlayer() == udg_Temp_Player then
        • Set Temp_Alpha = 50
        • Cinematic - Fade out and back in over 0.50 seconds using texture White Mask and color (100.00%, 0.005, 0.00%) with Temp_Alpha% transparency
        • Custom script: endif
      • Else - Actions
but when I play with other player ..and this trigger runs... the player will get disconnected... I don't know if I'm doing it right :V
Not open for further replies.