View Single Post
  #1  
Old 06-25-2005, 07:52 PM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
onActionServerside

NPC Code:

function onActionServerside(command, arg) {
switch(params[0]) {
case "stats":
// player.chat = "boo";
switch (params[1]) {
case "hurt":
dmg = params[2];
hp = clientr.health[0];
clientr.health[0] = hp - dmg;
break;
}
break;
}
}



The script only works when the player.chat command is uncommented.

Anyway to fix this / is their a different way for triggeractions in GS2?
Reply With Quote