I tried this and it didn't work:
PHP Code:
//#CLIENTSIDE
function onKeyPressed(code, key)
{
switch(key)
{
case "a":
temp.gx = player.x + 1.5 + vecx(player.dir) * 2;
temp.gy = player.y + 2 + vecy(player.dir )* 2;
triggeraction(temp.gx, temp.gy, "Grab";
break;
}
}
openURL("http://wiki.graal.net");
}