• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Exclamation mark over denied creep

Status
Not open for further replies.
Level 11
Joined
May 7, 2008
Messages
300
When you kill an unit , and that unit is an ally of yours ,(unit type , no heroes) it will show exclamation mark with your color , exclamation mark is over head and its floating text , ( the exclamation mark will have your color if you denied that creep ) .So how can i do this?
 
Level 18
Joined
Aug 23, 2008
Messages
2,319
There are 2 ways to get that exclamation mark:
1) You make/get a exclamation mark model like the Blizzard one, but with Team Color skin, then you apply the color of the owner of killing unit to it
2) You make the Blizzard exclamation mark model the model of a dummy unit with flying height to make it float over the head. Then you change Vertex coloring of the unit to the color of the owner of killing unit. Vertex colors go in Red/Blue/Green percentages, so you'll have to use If/Then/Else commands 'If Player color of Owner of Killing Unit Equal to Red, Change vertex of UNIT to 100,0,0, else If Player color of Owner of Killing Unit Equal to Blue, Change vertex of...', etc. On top of this, the exclamation mark is not an attachment, so it will not move along with the unit when the unit is moved.
 
Level 12
Joined
Mar 16, 2006
Messages
992
empty.gif
join.gif
A unit dies
empty.gif
join.gif
Owner of (Dying Unit) equal to Ally of Owner of (Dying Unit)
empty.gif
join.gif
set temp_point = position of (dying unit)
empty.gif
join.gif
create floating text: "!" at temp_point using #R, #G, #B, #T, size #
empty.gif
join.gif
set life of floating text to # seconds
empty.gif
join.gif
// then you can add to the kill prevention counter, or whatever else.

I can't remember which trigger changes the direction in which floating text disappears towards, but that's generally all you need for it.
 
Status
Not open for further replies.
Top