Author Topic: Smallest snippet of code that will "Tumble"  (Read 630 times)

I'm looking for the smallest amount of code that will Tumble a player, like from the skis.

Please note that this will not be used for admin abuse or unfailing events.

Isn't it just tumble(player, some number);?

What should I put in for Player? BlId, "player" and leaving it blank all don't work.

function serverCmdTumbleMe(%client)
{
  %player = %client.player;
  tumble(%player, 1);
}


try that

k, I'm doing this.
I snapped this bit of code onto the horse ray (I like the thing, OK?)

function TumblerProjectile::Damage(%this,%obj,%col,%fade,%pos,%normal)
{
  %player = %client.player;
  tumble(%player, 1);
}

I start a minigame. I use eventing to spawn a projectile that hits me and explodes. I'm not tumbling at all.

You can't pull variable out of thin air.

function TumblerProjectile::Damage(%this,%obj,%col,%fade,%pos,%normal)
{
  if(%col.getClassName() $= "Player")
    tumble(%col, 1);
}



That was your code. So you pulled variables out of thin air.

Anyway, testing now.

No, with my code it would have worked because %client was a real variable.

Yours didn't work that way.

No, with my code it would have worked because %client was a real variable.

Yours didn't work that way.
No u magic and pull varibles from teh air.

No u magic and pull varibles from teh air.
yes im magic coding buddy

KK.

Solved.

Locked.

Thanks.