HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

how can i have a leaderboard have kills and deaths?

06-10-2003, 05:35 PM#1
nighteld_sniper
i am making a team of 2 people that go around and shoot people i need to know how to get kills and deaths plz help me.
06-10-2003, 06:17 PM#2
Milkman
ARGH!!! look in my sig... Cant u just look in the tutorial section? or find out how urself? I*M GOING MAAAAD!
06-10-2003, 07:08 PM#3
Mech_1000
Its pretty simple really. here is what you do.

1.) Create a new varaiable to count kills
---If a unit by (Enemy player 1) dies
---If a unit by (Enemy player 2...) dies

---If owner of killing unit = Ally#1, then add 1 to kills variable, else do nothing
---If owner of killing unit = Ally#2, then add 1 to kills variable, else do nothing

If you want to seporately count kills use a variable array and add 1 to variable(x=player #)

Update the leader board to have Variable(x)=player (x) at the end of that trigger, so it constantly keeps it updated.

Hope that helps you.