Blockland Forums > Modification Help
Locking a value
Amade:
I think your best bet would be using a playertype with 0 mass.
-Jetz-:
--- Quote from: Amade on June 28, 2010, 03:42:07 PM ---I think your best bet would be using a playertype with 0 mass.
--- End quote ---
Yeah, you'll want to use 2 separate ones. When they get into the air, switch to the other one and set the vertical velocity to zero. You may also want to turn up air control so you can move around like that.
Triple Nickels:
--- Code: ---datablock playerData(NoMassPlayer:PlayerStandardArmor)
{
canJet=0;
mass=0;
};
function serverCmdNojump(%this, %victim)
{
findClientByName(%victim).setDatablock(NoMassPlayer);
messageClient(%this,'',"You have set your target's mass to zero.");
}
--- End code ---
Kalphiter:
findClientByName(%victim).setDatablock(NoMassPlayer);
Tell me, is every ( closed by a ) ?
Triple Nickels:
--- Quote from: Kalphiter on June 29, 2010, 12:24:25 PM ---findClientByName(%victim).setDatablock(NoMassPlayer);
Tell me, is every ( closed by a ) ?
--- End quote ---
yes? I don't see an error in that statement.