- Joined
- May 18, 2018
- Messages
- 18
So im making a multiplayer map that has a single player option but with anticheat and i got anticheat for most of them, and im kinda stuck on the whosyourdaddy
Basically the thing is that i dont want the Triggers to Defeat the player on using cheats, i want them to execute a script that skips defeat screen and removes them from the game
Example (anti greedisgood)
now i set up the classic anti whosyourdaddy where you got an unit attacking another high hp regen unit so it cant be killed unless whosyourdady is activated, but now im having trouble editing the script to instead of getting localplayer / triggeringPlayer to getting owningplayer of killing unit so, if anyone could take their time and share their advanced wisdom, i would apprecitate that a lot
in case this has been posted somewhere im sorry i really didnt find it tried search
Basically the thing is that i dont want the Triggers to Defeat the player on using cheats, i want them to execute a script that skips defeat screen and removes them from the game
Example (anti greedisgood)
-
Events
-
Player - Player 1 (Red)'s Current gold becomes Greater than or equal to 500000.00
-
Player - Player 1 (Red)'s Current lumber becomes Greater than or equal to 200.00
-
-
Conditions
-
Actions
-
Game - Display to (All players) the text: |c00FF0000=== CHEAT...
-
Unit - Pause all units
-
Wait 10.00 seconds
-
Custom script: if GetLocalPlayer() == GetTriggerPlayer() then
-
Custom script: call RemovePlayer(GetTriggerPlayer(), PLAYER_GAME_RESULT_DEFEAT )
-
Custom script: call EndGame(true) // Skips to game result screen
-
Custom script: endif
-
now i set up the classic anti whosyourdaddy where you got an unit attacking another high hp regen unit so it cant be killed unless whosyourdady is activated, but now im having trouble editing the script to instead of getting localplayer / triggeringPlayer to getting owningplayer of killing unit so, if anyone could take their time and share their advanced wisdom, i would apprecitate that a lot