Page 1 of 1

Is there a gameover script?

Posted: Tue May 30, 2017 10:21 pm
by Scraper
Hi, I just made a deathrun-like map where you respawn instantly.
However, for some reason the /gameover script doesn't work.

This is the script for the gameover

Code: Select all

public void gameover(TriggerArgs args)
{
Game.SetGameOver("Congratulations!");
}
So, I made a Button00 and made it's Object Id =gameover, but when I press it, the game won't end. Is there something wrong in the script?

Here is the WHOLE script : https://pastebin.com/H7ZnHPHN

Re: Is there a gameover script?

Posted: Wed May 31, 2017 11:11 am
by Hoang Marcel
The script works fine, you have to put gameover in ScriptMethod not ObjectID.

Re: Is there a gameover script?

Posted: Wed May 31, 2017 12:16 pm
by Scraper
Oh, thanks.