Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   New Scripting Engine (GS2) (https://forums.graalonline.com/forums/forumdisplay.php?f=153)
-   -   Triggeraction and local NPCs? (https://forums.graalonline.com/forums/showthread.php?t=65500)

Seichi 04-19-2006 06:23 AM

Triggeraction and local NPCs?
 
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,pla yer.agi,player.int,player.spi,player.sta);

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

ApothiX 04-19-2006 02:47 PM

To trigger local NPCs you have to use their coordinates, not 0,0.

so like:

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


All times are GMT +2. The time now is 02:39 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.