View Single Post
  #5  
Old 11-19-2011, 05:17 AM
ffcmike ffcmike is offline
Banned
Join Date: Jul 2004
Location: London
Posts: 2,029
ffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond repute
Send a message via AIM to ffcmike Send a message via MSN to ffcmike
Quote:
Originally Posted by ffcmike View Post
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.

Last edited by ffcmike; 11-19-2011 at 05:48 AM..
Reply With Quote