Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Triggeraction Not Working :( (https://forums.graalonline.com/forums/showthread.php?t=134257140)

Kyranki 12-01-2009 01:47 AM

Triggeraction Not Working :(
 
PHP Code:

//#CLIENTSIDE
function onCreated() {
}
function 
onKeyPressed(codekey) {
  switch (
key) {
    case 
"a":
      echo(
"GRAB ASS!");
      
triggeraction(((player.1.5) + vecx(player.dir)), ((player.1.75) + vecy(player.dir)), "Grab"null);
    break;
  }


PHP Code:

//#CLIENTSIDE
function onCreated() {
  
this.setimg(this.image);
  
this.setshape(13232);
}
function 
onPlayerChats() {
  if (
player.communityname == "FreakyDonkey") {
    if (
player.chat == "/destroy") {
      
this.destroy();
    }
  }
}
function 
onGrab() {
  echo(
"Has been grabbed!");


This is irking me because it was working before and now it isn't.

cbk1994 12-01-2009 01:49 AM

The function should be named "onActionGrab" :)

Kyranki 12-01-2009 01:51 AM

How could I forget such a thing! Inexcusable! Thank you Chris.


All times are GMT +2. The time now is 04:00 PM.

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