View Full Version : Triggeraction and local NPCs?

04-19-2006, 07:23 AM
I made a local NPC on a level (using the NPC placement thingy, then scripting with GS2 and uploading to test). It seems my triggeraction doesn't work. Here it is:

triggeraction(0,0,"serverside",name,player.str,player.agi,player.int,player.spi, player.sta);

I have no idea why it won't work...any help? :(

04-19-2006, 03:47 PM
To trigger local NPCs you have to use their coordinates, not 0,0.

so like:

triggeraction(this.x, this.y, "actionName", ...);