Author Topic: Event Help  (Read 678 times)

I'm making an event that decides whether or not a player can jet or not.

It's not working and there's no syntax errors in the console.

Code: [Select]
registerOutputEvent(Player,"CanJet","bool");

function Player::CanJet(%player,%boolthing)
{
if(%boolthing == 0)
{
%player.canJet = 0;
}
else
{
%player.canJet = 1;
}
}

What did I do wrong? I'm new to this. Please be nice.

Whether or not a player can jet is based on the datablock.

Whether or not a player can jet is based on the datablock.

Oh. Is there any way around that?


« Last Edit: February 15, 2010, 12:52:08 AM by MrBob00 »

You could force jetting on or off before the server begins, but you can't change the player datablocks in-game.

Whether or not a player can jet is based on the datablock.
Not necessarily, you could stop the right click trigger from working if canJet is off.

Why not just change the player datablock?

Why not just change the player datablock?

It won't work unless the datablocks are reloaded, which normally requires restarting the server.