| Blockland Forums > Modification Help |
| Brick owner |
| (1/1) |
| Mawpius:
I was wondering what you would do if you wanted to, for example, click someone's brick and have it tell you who the owner of it is. |
| otto-san:
you could make it so it fires a short raycast in front of the player and if it hits a brick, it messages the brick's client's name. |
| Mawpius:
I have no idea what the code is to return the brick owner's bl_id/name though. |
| otto-san:
--- Quote from: Mawpius on July 26, 2011, 06:43:06 PM ---I have no idea what the code is to return the brick owner's bl_id/name though. --- End quote --- %brick.client.getPlayerName() %brick.client.bl_id |
| Mawpius:
Thanks for that :p |
| Navigation |
| Message Index |