how do you detect if a certain unit has been shot at?
see im making a script which detects if a unit is shot at and then makes them duck and stuff.
How do i make it so a unit will be set to combat mode blue if it detects that they are shot at?
how do i switch them back to yellow when they are not being shot at any more?
and how would i put this in a script?
thanks