Author Topic: Resetting a Slayer MiniGame  (Read 648 times)



The same way as any other minigame.

%minigame.reset(%client);

You can just put 0 for %client if you are doing something without a client.

/resetminigame?
Why do you pop everywhere giving bullstuff answers?
The same way as any other minigame.

%minigame.reset(%client);

You can just put 0 for %client if you are doing something without a client.
How do I get %minigame?

How do I get %minigame?
Does slayer have an object or a var for that?
Like Slayer or $Slayermini?
Otherwise you can do findclientbyname("noobinminigame").minigame.reset(0);

How do I get %minigame?

Depends on the context. If you're using a game-mode Slayer mini-game, you could try $DefaultMiniGame.

How would I reset a minigame that the host put on?

Dedicated server btw

You can find all Slayer minigames in the Slayer.Minigames scriptgroup or in the minigameGroup simset.

You can find the minigame that an object belongs to with getMinigameFromObject(%obj).



Edit:
How would I reset a minigame that the host put on?

Dedicated server btw

A nice little shortcut to find the host's minigame is %mini = Slayer.Minigames.getHostMinig ame();
Then just do %mini.reset(0);
« Last Edit: October 05, 2012, 04:14:28 PM by Greek2me »

You can find all Slayer minigames in the Slayer.Minigames scriptgroup or in the minigameGroup simset.

You can find the minigame that an object belongs to with getMinigameFromObject(%obj).



Edit:
A nice little shortcut to find the host's minigame is %mini = Slayer.Minigames.getHostMinig ame();
Then just do %mini.reset(0);
Thanks it works