- Joined
- Dec 21, 2010
- Messages
- 581
Zombie Island Survival
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
-
-



