• 🏆 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!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

[Trigger] Help me in Get Local Player scripts

Status
Not open for further replies.
Level 13
Joined
Dec 21, 2010
Messages
541
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
 
Status
Not open for further replies.
Top