Blockland Forums > Modification Help
Change datablock help + static help
Amade:
1. You have the name of the datablock right, it's SpeedPlayer, as you named it.
2. The arguments for itemData::onPickup are %this, %obj, %client, %amount
3. I believe %obj is the item, so you would probably want to try %client.player instead to change the datablock.
Derroith:
--- Quote from: Placid on August 17, 2011, 09:14:31 PM ---as normal, make sure there's no syntax errors and such, but i think you know that.
try changing your datablock to the speed datablock (add a uiName for a little bit) and enter in the console echo(findclientbyname("yourname").player.datablock.getName()); and post the results.
--- End quote ---
Syntax error in input.
--- Quote from: Amade on August 17, 2011, 09:24:15 PM ---1. You have the name of the datablock right, it's SpeedPlayer, as you named it.
2. The arguments for itemData::onPickup are %this, %obj, %client, %amount
3. I believe %obj is the item, so you would probably want to try %client.player instead to change the datablock.
--- End quote ---
Did as said, nothing appears to have changed.
And anybody know how to make it so the item doesn't go into your inventory? So basically you walk over it, it goes into use, and disappears from inventory.
PurpleMetro:
--- Quote from: Derroith on August 17, 2011, 10:59:30 PM ---Syntax error in input.
Did as said, nothing appears to have changed.
And anybody know how to make it so the item doesn't go into your inventory? So basically you walk over it, it goes into use, and disappears from inventory.
--- End quote ---
Is that even possible? :o
Derroith:
--- Quote from: PurpleMetro on August 17, 2011, 11:02:19 PM ---Is that even possible? :o
--- End quote ---
That's how static works, its a pickup item that goes into use but you never exactly see it get used apparently.
My rotate isnt working for my item either, can anyone else help me with that?!
PurpleMetro:
--- Quote from: Derroith on August 17, 2011, 11:03:49 PM ---That's how static works, its a pickup item that goes into use but you never exactly see it get used apparently.
My rotate isnt working for my item either, can anyone else help me with that?!
--- End quote ---
._.
processing data...
error
error
commencing self destruct
BOOM!