View Single Post
  #11  
Old 05-16-2011, 01:20 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
This seemed to work for me:

wNPC A:

PHP Code:
function onCreated() {
  
this.join("test");
}

//#CLIENTSIDE

function onCreated() {
  
this.leave("test"); // Not really necessary, just prevents function overwriting issues.
  
player.join("test");

wNPC B:

PHP Code:
//#CLIENTSIDE
function onCreated() {
  
player.hello();

Class: test

PHP Code:
//#CLIENTSIDE
public function hello() {
  
player.chat "world.";

Looks like it also resolves the 'have to restart client to update' issue as well. Just make sure A loads first, which should be as easy as placing it first in weaponsorder in server options.

Last edited by fowlplay4; 05-16-2011 at 01:36 AM.. Reason: Further testing...
Reply With Quote