Quote:
Originally Posted by Gambet
You are triggering serverside since it's a level npc. Level npcs trigger to the serverside to the function denoted by onActionFunctionName().
It isn't really a problem unless both NPCs have the same function name, but yes, probably better to rely on the object rather than an x/y position.
|
Well this is what I tried and I cannot get it to work, I have no clue what's wrong with it.
Quote:
function onActionTestT(){
level.rofltest = "works";
player.chat = level.rofltest;
}
//#CLIENTSIDE
function onCreated(){
onTestTrigger()
}
function onTestTrigger(){
triggeraction(this.x, this.y, "TestT", NULL);
}
|