Quote:
Originally Posted by BlueMelon
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?
|
Triggerclient does not work within any form of NPC, it works within Weapons.
That aside, there would be no player object within the onCreated event, you would have to do:
PHP Code:
findplayer("account").triggerClient(params);