- Joined
- Apr 1, 2019
- Messages
- 156
I'm trying to show an Image at the point where a unit is attacked, problem is it only shows if the unit is standing in certain positions. Here's the trigger
-
Sarah Palin
-

Events
-


Game - GDD_Event becomes Equal to 0.00
-
-

Conditions
-

Actions
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




|c00FF6347Demonic|r|nThe Life and Times of Sarah Palin Equal to (Unit-type of GDD_DamageSource)
-




(Owner of GDD_DamageSource) Not equal to (Owner of GDD_DamagedUnit)
-
-



Then - Actions
-




Set TempPointSpell = (Position of GDD_DamagedUnit)
-




Image - Create an image using war3mapImported\PalinCrop.blp of size 256.00 at TempPointSpell with Z offset 256.00 using image type Indicator
-




Image - Change (Last created image): Enable render always state
-




Image - Show (Last created image)
-




Set Image_SarahPalin_Int[1] = (Image_SarahPalin_Int[1] + 1)
-




Set Image_SarahPalin[Image_SarahPalin_Int[1]] = (Last created image)
-




Custom script: call RemoveLocation(udg_TempPointSpell)
-




Wait 1.00 seconds
-




Set Image_SarahPalin_Int[2] = (Image_SarahPalin_Int[2] + 1)
-




Image - Hide Image_SarahPalin[Image_SarahPalin_Int[2]]
-




Image - Destroy Image_SarahPalin[Image_SarahPalin_Int[2]]
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






Image_SarahPalin_Int[1] Equal to Image_SarahPalin_Int[2]
-
-





Then - Actions
-






Set Image_SarahPalin_Int[1] = 0
-






Set Image_SarahPalin_Int[2] = 0
-
-





Else - Actions
-
-
-



Else - Actions
-
-
-
-
[\trigger]

