• 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] Help me in Get Local Player scripts

Status
Not open for further replies.
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