PHP Code:
//#CLIENTSIDE
function onCreated() {
}
function onKeyPressed(code, key) {
switch (key) {
case "a":
echo("GRAB ASS!");
triggeraction(((player.x + 1.5) + vecx(player.dir)), ((player.y + 1.75) + vecy(player.dir)), "Grab", null);
break;
}
}
PHP Code:
//#CLIENTSIDE
function onCreated() {
this.setimg(this.image);
this.setshape(1, 32, 32);
}
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.