View Single Post
  #1  
Old 12-01-2009, 01:47 AM
Kyranki Kyranki is offline
Freelance Coder
Join Date: Aug 2007
Location: At the end of the rainbow, in the pot of gold.
Posts: 202
Kyranki is on a distinguished road
Send a message via AIM to Kyranki Send a message via MSN to Kyranki
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.
__________________
Stan.
Reply With Quote