Blockland Forums
Home
Help
Login
Register
Blockland Forums
»
Blockland Forums
»
Modification Help
»
Change an item's UINAME on pickup?
« previous
next »
Print
Pages: [
1
]
Author
Topic: Change an item's UINAME on pickup? (Read 1192 times)
rkynick
November 18, 2007, 11:29:35 PM
Would it be possible?
for example, a weapon called AWESOMERIFFIC, and when you picked it up its name turned into LULNUBS.
If it is, please give code on how to do it. I've been trying for what seems like an enternity.
Ad Bot
Advertisement
BattleKon001
November 19, 2007, 12:07:54 AM
It is very possible.
But i can only do it by changing the name of the item for everyone (i think)
Ephialtes
November 19, 2007, 09:16:36 AM
The uiName value of a datablock is networked so you'd need to send out a datablock update to all the clients connected telling them to change the uiName to whatever you want.
Generally modifying datablock information on-the-fly is a bad idea and you should avoid it.
rkynick
November 19, 2007, 11:46:08 AM
I can get it to change the uiname but it still shows up as the previous name in the inventory. Also I'm trying to do it seperately for each item.
Trader
November 19, 2007, 11:50:51 AM
No, the only way to do that would be to have client side code that changes the text of the inventory UI.
rkynick
November 19, 2007, 12:09:39 PM
oooo...
Print
Pages: [
1
]
« previous
next »
Blockland Forums
»
Blockland Forums
»
Modification Help
»
Change an item's UINAME on pickup?