View Single Post
  #6  
Old 06-11-2009, 06:59 PM
Cubes Cubes is offline
Registered User
Cubes's Avatar
Join Date: Dec 2005
Location: Chesapeake, Virginia
Posts: 498
Cubes is a jewel in the roughCubes is a jewel in the rough
Quote:
Originally Posted by Gambet View Post
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);
}
Reply With Quote