Posts: 2
Threads: 1
Joined: Sep 2014
Thanks: 0
Given 0 thank(s) in 0 post(s)
Is it possible to programaticaly (by code) change sign text?
I wonna show status of few places that are around city in city hall on signs. Is it possible with MCSever and Lua plugin?
Posts: 4,621
Threads: 113
Joined: Dec 2011
Thanks: 51
Given 58 thank(s) in 410 post(s)
If you want to edit signs in an existing world you have to use cWorld:SetSignLines(a_X, a_Y, a_Z, a_Line1, a_Line2, a_Line3, a_Line4, [cPlayer])
The player parameter is optional.
Posts: 6,486
Threads: 176
Joined: Jan 2012
Thanks: 40
Given 157 thank(s) in 838 post(s)
10-03-2014, 04:52 AM
(This post was last modified: 10-03-2014, 04:56 AM by xoft.)
Right, STR_Warrior got the right answer, I completely forgot about that function.
The code I gave you should work as well, but is needlessly complicated.