XxMayhemxX
New Member
- Reaction score
- 6
Question about the Trigger: Kill Unit
This trigger here will kill any enemy that gets to the end of the maze(a leak) and make you lose 1 life on the leaderboard.
My question is, who does this kill count for?
Will it count for me(player 1).. or is it an anonymous kill?
I cant have it be a kill for Player 1... Because i don't want it to count towards Player 1's kill counter since it's a leak.
I can't use the Remove Unit trigger... because a diff trigger will mess up... the leak must go away via kill. I tried to make another computer cannon that auto kills leaks... but i couldnt get that to work either.
Code:
Lives Counter
Events
Unit - Any Unit Enters End
Local Variables
Conditions
(Owner of (Triggering unit)) == 15
Actions
Unit - Kill (Triggering unit)
Variable - Modify Lives: - 1
Leaderboard - Set Leaderboard item text at column 4 and row 1 to (Text(Lives))
This trigger here will kill any enemy that gets to the end of the maze(a leak) and make you lose 1 life on the leaderboard.
My question is, who does this kill count for?
Will it count for me(player 1).. or is it an anonymous kill?
I cant have it be a kill for Player 1... Because i don't want it to count towards Player 1's kill counter since it's a leak.
I can't use the Remove Unit trigger... because a diff trigger will mess up... the leak must go away via kill. I tried to make another computer cannon that auto kills leaks... but i couldnt get that to work either.