Blockland Forums
Home
Help
Login
Register
Blockland Forums
»
Blockland Forums
»
Modification Help
»
Item names
« previous
next »
Print
Pages: [
1
]
Author
Topic: Item names (Read 656 times)
Ipquarx
April 27, 2010, 04:45:18 PM
Is there a way to client-sided (doesent have to be, but perferred) to find the name of a item using a var like %item.name? (%item.name does not work by the way)
Ad Bot
Advertisement
Kalphiter
April 27, 2010, 04:48:37 PM
uiname
Ephialtes
April 27, 2010, 04:53:32 PM
You have to get the datablock from the item (%item.getDataBlock()) and from that you can access the networked member variable "uiName" which contains the item name.
Ipquarx
April 28, 2010, 04:36:04 PM
so like...
%item = %item.getdatablock
echo(%item.uiname);
?
Kalphiter
April 28, 2010, 04:37:16 PM
Who taught you how to script?
echo(%item.getDatablock().uiname);
Ipquarx
April 28, 2010, 04:42:24 PM
Thanks, and i dont know much about scripting, so far im self-taught
Print
Pages: [
1
]
« previous
next »
Blockland Forums
»
Blockland Forums
»
Modification Help
»
Item names