Blockland Forums > Modification Help

Find the brick creator

Pages: (1/1)

pitfall:

If like a brick is hit by a projectile, How would I find the client that placed the brick?

Uristqwerty:

There are plenty of ways, however, the client might not be there anymore. %brick.getgroup() will return the brickgroup of the owner, and that should have some data on it, probably their BL ID and possibly the client if they are still in-game.

pitfall:

I have tried %brick.getgroup().

--- Code: ---%brick.getBrickGroup().bl_id
--- End code ---
Also i am just looking for the BL_ID.


Gadgethm:


--- Quote from: pitfall on October 11, 2010, 10:18:43 PM ---I have tried %brick.getgroup().

--- Code: ---%brick.getBrickGroup().bl_id
--- End code ---
Also i am just looking for the BL_ID.


--- End quote ---
Your bit of code there should work.  If not, do %brick.dump(); and %brick.getbrickGroup.dump();
Make sure to replace %brick with the id number of the brick (I.e. use /getid while looking at the brick)

Headcrab Zombie:

It's getGroup, not getBrickGroup

Pages: (1/1)

Go to full version