View Single Post
  #1  
Old 03-23-2012, 12:42 AM
BlueMelon BlueMelon is offline
asdfg
BlueMelon's Avatar
Join Date: Sep 2008
Posts: 1,481
BlueMelon is a splendid one to beholdBlueMelon is a splendid one to beholdBlueMelon is a splendid one to beholdBlueMelon is a splendid one to behold
trigger client in a DB NPC

PHP Code:

function onCreated(){
  
trigWeapon("Test");
}

function 
trigWeapon(trig){
  
triggerClient("npc","Blue_Temp","triggar",trig);
}

//#CLIENTSIDE

function onActionClientSide(){
  if(
params[0] == "triggar"){
    
findWeapon("Blue/Temp").trigger(params[1], "");
  }

And then ofcourse in Blue/Temp (weapon) I would have on clientside
function onTest(){ player.chat = "test"; }

Anyone have an idea why its not triggering?
__________________
http://i.imgur.com/OOJbW.jpg
Reply With Quote