| Blockland Forums > Modification Help |
| Getting the brick being set from serverCmdsetwrenchdata? |
| (1/1) |
| DrenDran:
I need to be able to get properties of the brick being set in a call to serverCmdsetwrenchdata, how might I go about this? |
| Truce:
GameConnection.wrenchBrick is set when the client's player uses the wrench on a brick. |
| DrenDran:
--- Quote from: Truce on November 04, 2010, 05:01:22 PM ---GameConnection.wrenchBrick is set when the client's player uses the wrench on a brick. --- End quote --- So... --- Code: ---package bob { function serverCmdsetwrenchdata(%client,%data) { %brick = %client.wrenchBrick; Parent::serverCmdsetwrenchdata(%client,%data); } } activatePackage(bob); --- End code --- Would make %brick the brick each time? |
| Chrono:
Yes. |
| Navigation |
| Message Index |