Blockland Forums
Home
Help
Login
Register
Blockland Forums
»
Blockland Forums
»
Modification Help
»
Brick Name
« previous
next »
Print
Pages: [
1
]
Author
Topic: Brick Name (Read 460 times)
Altair
January 13, 2009, 01:52:48 PM
if %brick is the brick's object id, how do I get the name entered in the "Brick Name" field?
is it %brick.getname()?
Ad Bot
Advertisement
Destiny/Zack0Wack0
January 13, 2009, 03:31:06 PM
Yes.
Truce
January 13, 2009, 03:36:36 PM
Not quite, you'd use:
Code:
[Select]
getSubStr(%brick.getName(),1,strLen(%brick.getName()))
The brick objects' names are preceded by an underscore, denoting their brickness.
By using getSubStr you can get everything but the underscore. Simple as that.
Print
Pages: [
1
]
« previous
next »
Blockland Forums
»
Blockland Forums
»
Modification Help
»
Brick Name