Quote:
Originally Posted by ffcmike
Similarly it now seems as if npc.image is not synchronised to clients when using setimg(); serverside onCreated.
For instance with:
PHP Code:
function onCreated() { this.setimg("light2.png"); }
The image is not appearing, whereas using setimg(); clientside or setting the image within the offline NPC script editor it's fine.
|
I just realised now that the reason this wasn't working is simply because light2.png does not exist serverside. I think it's an image downloaded with the client rather than a mainfile, so setimg(); must be checking to see if the image exists before applying it and synchronising it, whereas setting it within the name field of the editor will still synchronise it.
light2.png should probably be added to mainfiles.