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.
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.