Blockland Forums > Modification Help
Changing speed, jumping, in player datablocks
<< < (4/5) > >>
lordician:

--- Quote from: Greek2me on March 31, 2011, 04:41:51 PM ---client.player.getDatablock()

--- End quote ---
Couldn't you use client.player.datablock? (Wasn't this some kind of ID?)
I don't really understand the difference between those two but i do know that you can get data from the datablock by doing getDatablock.
i believe the normal client.player.datablock was used to compare datablocks.
Minnax:

--- Quote from: Greek2me on March 31, 2011, 04:41:51 PM ---client.player.getDatablock()

--- End quote ---
I tried    if(%client.player.getdatablock(PlayerStandardArmor) == true)
And    if(%client.player.getdatablock() = PlayerStandardArmor)


Nothing.
Minnax:
Bump.
Gravity Cat:

--- Quote from: Minnax on April 02, 2011, 07:59:01 PM ---I tried    if(%client.player.getdatablock(PlayerStandardArmor) == true)
And    if(%client.player.getdatablock() = PlayerStandardArmor)


Nothing.

--- End quote ---
You are doing it wrong.

if(%client.player.getDatablock() $= "PlayerStandardArmor") is correct.
Deathwishez:

--- Quote from: Gravity Cat on April 03, 2011, 02:53:04 PM ---You are doing it wrong.

if(%client.player.getDatablock() $= "PlayerStandardArmor") is correct.


--- End quote ---

if(%client.player.getDatablock() == PlayerStandardArmor) works fine too.
Navigation
Message Index
Next page
Previous page

Go to full version