Blockland Forums > Modification Help

Changing speed, jumping, in player datablocks

Pages: << < (3/5) > >>

Minnax:


--- Quote from: Red_Guy on March 30, 2011, 07:50:38 PM ---Thats an example of things not working the way you want.

What will happen is that when one person equips a heavy weapon, and your script changes the datablock to slow down that player - EVERYBODY will slow down.  The same datablock is used for all players, so changing the values affects everyone.

Your best option here is to follow picketrocket's advice and make different player datablocks for each weapon type.


--- End quote ---

Yeah, that is what I did, I just wanta to see if it was possible. It seems possible for gravity cat, if you get shot, you slow down a bit, not changing datablock, but prehaps value.

Gravity Cat:


--- Quote from: Minnax on March 30, 2011, 08:11:17 PM ---Yeah, that is what I did, I just wanta to see if it was possible. It seems possible for gravity cat, if you get shot, you slow down a bit, not changing datablock, but prehaps value.

--- End quote ---
Nope, I actually change the datablocks. Changing the values of datablocks would affect the whole server.


lordician:


--- Quote from: Gravity Cat on March 31, 2011, 01:21:58 PM ---Nope, I actually change the datablocks. Changing the values of datablocks would affect the whole server.


--- End quote ---
Facedesk, once again, i was so close but yet so far.

Minnax:


--- Quote from: Gravity Cat on March 31, 2011, 01:21:58 PM ---Nope, I actually change the datablocks. Changing the values of datablocks would affect the whole server.


--- End quote ---

Hmmm. Ok, I guess ill just have to make every datablock for every playertype I want to make this work with. Is there a arguement for datablocks, to check what datablock you are? I looked, and couldn't find one.

Greek2me:

client.player.getDatablock()

Pages: << < (3/5) > >>

Go to full version