Thread: Npc to Npc
View Single Post
  #11  
Old 02-17-2011, 05:01 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
Quote:
Originally Posted by kingcj View Post
A trigger won't work clientside from the DB I don't think, but I don't really know. I don't understand why it won't pick this up as a function though? A trigger would be great if I could work it server to client and client to server without it being a weapon, unfortunately I have tried this.
Leads me to believe your door script looks like..

PHP Code:
//#CLIENTSIDE
function onCreated() { 
  
SwitchDB findnpc("SwitchDB"); 
  
SwitchDB.addDoor("door_a"this); 



public function 
doorOpen() { 
  
this.hide(); 
  
sleep(3); 
  
this.show(); 

which won't work because you can't call directly from server-side to client-side like that.
__________________
Quote:
Reply With Quote