getting level npcs problem
I'm having trouble trying to get all the npcs in a single level. Right now I'm just trying to change the npcs chat. When ever I attempt to change their chat only two npcs in the level get found and their chat doesnt change until I grab them.
here is what im using to find the level npcs PHP Code:
|
hello!
several years ago the npc-server was updated so that variables within npcs only synchronise to players clients upon an event occurring if you add: PHP Code:
|
Thank you, it worked but I still have the problem where only 2 npcs are affected. I have a total of 4 npcs in the level but only two of them get changed.
http://i.imgur.com/SJQWTly.png |
Quote:
npcs which dont have any code beyond default synchronisation variables are actually considered un-necessary by the npc-server, and are therefore automatically removed from level.npcs[] serverside (as these are usually only necessary clientside) |
okay now it works perfect, thank you again!
I had some client side script in the two npcs and just deleted it since it wasn't needed. |
All times are GMT +2. The time now is 02:32 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.