Author Topic: Getting the brick being set from serverCmdsetwrenchdata?  (Read 510 times)

I need to be able to get properties of the brick being set in a call to serverCmdsetwrenchdata, how might I go about this?

GameConnection.wrenchBrick is set when the client's player uses the wrench on a brick.

GameConnection.wrenchBrick is set when the client's player uses the wrench on a brick.
So...
Code: [Select]
package bob
{
    function serverCmdsetwrenchdata(%client,%data)
    {
           %brick = %client.wrenchBrick;
            Parent::serverCmdsetwrenchdata(%client,%data);
    }
}
activatePackage(bob);
Would make %brick the brick each time?