Author Topic: Get minigame from a vehicle (SOLVED)  (Read 783 times)

Code: [Select]
function Vehicle::onadd(%this,%obj)
{
parent::onadd(%this,%obj);

}
how would you get the minigame the vehicle is in from that function?
« Last Edit: February 20, 2012, 10:02:55 PM by swollow »

::getMinigameFromObject()

%vehicle.getMinigameFromObject();
« Last Edit: February 20, 2012, 08:35:15 PM by Slicksilver »

thank you
Invalid Function
« Last Edit: February 20, 2012, 07:59:46 PM by swollow »

getMinigameFromObject(%obj);


My bad. I hardly ever do minigame stuff. Thought it was a method.

its still not solved it returns as -1

its still not solved it returns as -1
That means there is no minigame.

That means there is no minigame.
but I am in a minigame

I tried /getid on the vehicle and then typed
echo(getMinigameFromObject(IDHERE));
while in a minigame and it returns as -1
« Last Edit: February 20, 2012, 08:55:26 PM by swollow »

but I am in a minigame
Get in the vehicle and try again.

Also, is it a standard minigame or a Slayer one? Use standard for testing.

Get in the vehicle and try again.

Also, is it a standard minigame or a Slayer one? Use standard for testing.
I'm checking when there is not a player in the vehicle

Try doing this: getMinigameFromObject(getBrickGroupFromObject(%vehicle));

I see that you solved it? Did my solution work?

your solution worked with a 1ms schedule