PDA

View Full Version : Gscript2 and level NPCs clientside


Skyld
04-04-2005, 06:33 PM
I have found a curious problem with Gscript2 on Rudora.
Gscript2 works clientside and serverside in weapons, and it works on the serverside in DB NPCs (I have not tried to use it on the clientside with DB NPCs yet).
But my main concern is level NPCs. If a Gscript2 NPC is in a level, then the serverside part of the script will run but the clientside part will not. Simple things like this will not run:
//#CLIENTSIDE
function onPlayerChats() {
player.chat="Hello";
}
Any ideas?

Admins
04-04-2005, 07:05 PM
I have found a curious problem with Gscript2 on Rudora.
Gscript2 works clientside and serverside in weapons, and it works on the serverside in DB NPCs (I have not tried to use it on the clientside with DB NPCs yet).
But my main concern is level NPCs. If a Gscript2 NPC is in a level, then the serverside part of the script will run but the clientside part will not. Simple things like this will not run:
//#CLIENTSIDE
function onPlayerChats() {
player.chat="Hello";
}
Any ideas?

New scripting works in normal npcs too, but there might be problems if you do update level. For staying compatible with old clients it eventually sends the old scripting on "update level". If you relogin it should use new scripting if you have new client.

Skyld
04-04-2005, 07:08 PM
Okay, will take another look at that later
Thanks Stefan