Author Topic: MinigameSO::Reset() Arguments  (Read 1052 times)

As in the title, I would like to know what the arguments are for Minigame::Reset() so that i can parent it correctly.

Thanks!
« Last Edit: August 14, 2011, 07:28:20 AM by Fluff-is-back »

Code: [Select]
function MinigameSO::Reset(%mini)
apparently search button can be helpful
next time you need the args for something search, like, in this case, "MinigameSO::Reset(" and it should come up with a few things

next time you need the args for something search, like, in this case, "MinigameSO::Reset(" and it should come up with a few things
That doesn't work with most scripted functions.

That doesn't work with most scripted functions.
that's strange.. it works for me usually.

that's strange.. it works for me usually.
It'll work for engine functions like getSubStr, but not for scripted functions like serverCmdBan.

It'll work for engine functions like getSubStr, but not for scripted functions like serverCmdBan.
ah, i see. that clears something up for me, thanks.

Code: [Select]
function MinigameSO::Reset(%mini)

I tried this and it did not work, so I conducted a search and found that it is this:
Code: [Select]
MinigameSO::reset(%this, %client)

I tried this and it did not work, so I conducted a search and found that it is this:
Code: [Select]
MinigameSO::reset(%this, %client)
no it isn't. Placid is correct.

no it isn't. Placid is correct.
%client is the person who "won" the minigame.

%client is the person who "won" the minigame.
You mean who reset the minigame, which in TDM's case, chooses the winner.

no it isn't. Placid is correct.

I did try parenting placid's arguments but the minigame failed to reset after /resetminigame and using the button in the GUI.