First off, not sure if this is the right forum (I'm new, looked around, decided this looked like the best place for the question) I'm building a map, with a player score (or kill counter) when player kills other teams units, the problem is the map also has lava that raises and lowers, when someone puts their own units into the lava it raises their score. I know it has something to do with the way I wrote out the code, but not sure what to change it to.
I'll give out one of the players as they are all written the same:
to the conditions of your unit dies trigger. It ensures that a player can't get points for killing his own units.
Also.. having a trigger pr player, where the only difference is the player number is generally bad style. You should join them together into one trigger, by making your global kills variable be an array big enough to have an index pr player, and then index the array with the player number. Like so
First off, not sure if this is the right forum (I'm new, looked around, decided this looked like the best place for the question) I'm building a map, with a player score (or kill counter) when player kills other teams units, the problem is the map also has lava that raises and lowers, when someone puts their own units into the lava it raises their score. I know it has something to do with the way I wrote out the code, but not sure what to change it to.
I'll give out one of the players as they are all written the same:
This is the leader board in case needed:
Any help would greatly be appreciated.
I'm not sure how lava kills, but add
to the conditions of your unit dies trigger. It ensures that a player can't get points for killing his own units.
Also.. having a trigger pr player, where the only difference is the player number is generally bad style. You should join them together into one trigger, by making your global kills variable be an array big enough to have an index pr player, and then index the array with the player number. Like so
That didn't work. Here is the lava code..
It kills units by using a data entry.