Hello! I've currently got into a problem. I'm coding a gamemode, where you have to kill someone or kick the other one from the platform.
I've tried an point system, where the first player that reached 5 points win.
Problem is: If one player kills the other or kicks the other player from the platform 2 times in a row, then the other player kills that player that knocked him 2 times of the platform, the guy that already kicked him twice will get the point, instead of the guy, that killed him first time.
I don't know why. Here is my code:
Listener (if player falls of the platform): https://hastebin.com/tucevunocu.less
GameManager (adding Point to player): https://hastebin.com/jebabanobe.csharp
GameManager detecting Enemy / getting Enemy: https://hastebin.com/asekicijul.kotlin
Hastebin is a free web-based pastebin service for storing and sharing text and code snippets with anyone. Get started now.
Hastebin is a free web-based pastebin service for storing and sharing text and code snippets with anyone. Get started now.
Hastebin is a free web-based pastebin service for storing and sharing text and code snippets with anyone. Get started now.