Environment - Deal damage using Damage Effect on (Triggering unit) from Unit[2] with 0.0 extra damage
Extra information:
The 'Damage Effect' effect I added into the unit's weapon just in case it needed it. The 'Damage Effect' effect also deals 4 damage already so it should be doing damage.
What I want to do, is whenever a player clicks a unit, it takes damage from a unit owned by the player, so that kill bounty and score gets taken into account.
Also, an additional problem, how do I set text tags to fade after a certain amount of time?
set a duration for text tags and they will fade.
trigger looks fine, must be something at your end of the computer.
Checklist:
did you check if the trigger fires? (add UI - Text)
Are you sure units are controlled by player 14?
did you check if Unit[2] is set?
did you check if your damage effect is set up correctly?
did you ever try the extra dmg?
personal note:
replace the [2] with triggering player and you will need only 1 trigger for all players.
Oh, I didn't know it worked that way. I finally noticed in flags, all units are 'Cannot be clicked', which I clearly don't understand since in game I can click on them perfectly fine. After changing all the unit's flags it works. Thank you!
Clicked does not equal selected. A unit cannot be selected if it already is, but can be clicked multiple times. Clicking a unit is also not connected to showing the selection circle. (For example, a unit can be unselectable but still clickable)
This is my trigger.
Unit Selection - Any Unit is clicked by Player 2
(Owner of (Triggering unit)) == 14
Environment - Deal damage using Damage Effect on (Triggering unit) from Unit[2] with 0.0 extra damage
Extra information:
The 'Damage Effect' effect I added into the unit's weapon just in case it needed it. The 'Damage Effect' effect also deals 4 damage already so it should be doing damage.
What I want to do, is whenever a player clicks a unit, it takes damage from a unit owned by the player, so that kill bounty and score gets taken into account.
Also, an additional problem, how do I set text tags to fade after a certain amount of time?
Thank you so much for the help!
@VitaminLight: Go
set a duration for text tags and they will fade.
trigger looks fine, must be something at your end of the computer.
Checklist:
did you check if the trigger fires? (add UI - Text)
Are you sure units are controlled by player 14?
did you check if Unit[2] is set?
did you check if your damage effect is set up correctly?
did you ever try the extra dmg?
personal note:
replace the [2] with triggering player and you will need only 1 trigger for all players.
Oh, I didn't know it worked that way. I finally noticed in flags, all units are 'Cannot be clicked', which I clearly don't understand since in game I can click on them perfectly fine. After changing all the unit's flags it works. Thank you!
Clicked does not equal selected. A unit cannot be selected if it already is, but can be clicked multiple times. Clicking a unit is also not connected to showing the selection circle. (For example, a unit can be unselectable but still clickable)