If it is unit Preplaced (Already placed on the Map in the Editor) use The Event Units Dies and in the Conditions use The Killing Unit Click the [Value 2] and Change it to your Unit (Should be in the Value Tab). If the unit is Created after the map Starts use a Unit Variable after it's created such as Unit Create 1 Marine followed by a Set Variable My_Unit = Last Created Unit, then use The Event Units Dies and in the Conditions use The Killing Unit Click the [Value 2] and Change it to your Unit Variable (Should be in the Variable Tab).
The Killing Streak I assume is a Integer Variable you have to Track the kills a Unit is getting which you would Increase in this Trigger such as Modify Variable (Integer) +1, or you can use Set Variable [Killing Streak] = [Killing Streak] + 1.
My Projects:
Sorted Multiplayer Leader Board
Card Shuffle Dialog Demo
Air Wars Mass
Blizzard Fan since Starcraft. The Single Player story is AMAZING IMO, I can't wait for the Expansions. In Warcraft 3 I only enjoy the Custom Maps scene (& Blizzards...
I have created a demo map to demonstrate a method in creating kill streak tracking for only a specific unit.
The way it works is like this
(In this demo, I used 4 seconds as the Kill Streak Timer - meaning the unit has to kill every 4 seconds to keep the streak going)
When a unit is killed, check to see if Killing Unit is the unit we'd like to do kill streaks for
If it is, then start a timer that expires in a few seconds.
This timer, when it expires, will set the kill streak to 0 and end the streak altogethe.
If, however, before the timer expires, the unit kills again, the timer resets, and the kill streak goes up by 1, and the timer is reset back to it's default countdown time, and it grants the unit another 4 seconds to kill again.
If the unit takes more than 4 seconds to kill another unit, though, the timer expires, and resets the Kill Streak back to 0.
I also added a little visual cue so that it is more obvious when you kill a unit. On the left (in the Debug Message Area), I also added some text to show how large the kill streak is.
If you have anymore questions just post them and I'll be happy to answer them!
a little question, How do I do a simple Killing Streak for a Specific unit only?
Best Reply, Thanks.
I would use the custom values of a unit to track stats, but there are probably easier ways
@Mugen245: Go
If it is unit Preplaced (Already placed on the Map in the Editor) use The Event Units Dies and in the Conditions use The Killing Unit Click the [Value 2] and Change it to your Unit (Should be in the Value Tab). If the unit is Created after the map Starts use a Unit Variable after it's created such as Unit Create 1 Marine followed by a Set Variable My_Unit = Last Created Unit, then use The Event Units Dies and in the Conditions use The Killing Unit Click the [Value 2] and Change it to your Unit Variable (Should be in the Variable Tab).
The Killing Streak I assume is a Integer Variable you have to Track the kills a Unit is getting which you would Increase in this Trigger such as Modify Variable (Integer) +1, or you can use Set Variable [Killing Streak] = [Killing Streak] + 1.
If you need any more Help Post here or PM me.
@user_874412: Go
I did tried using Owner of Killing Unit , but it lags and usually displays Trigger Error on the debug panel.
whats the error?
I have created a demo map to demonstrate a method in creating kill streak tracking for only a specific unit.
The way it works is like this (In this demo, I used 4 seconds as the Kill Streak Timer - meaning the unit has to kill every 4 seconds to keep the streak going)
I also added a little visual cue so that it is more obvious when you kill a unit. On the left (in the Debug Message Area), I also added some text to show how large the kill streak is.
If you have anymore questions just post them and I'll be happy to answer them!