Quote:
Originally Posted by fowlplay4
It's usually something like this:
PHP Code:
//#CLIENTSIDE
function onKeyPressed() {
if (keydown(6) && player.ani == "grab") {
triggeraction(player.x+vecx(player.dir)*2, player.y+vecy(player.dir)*2, "Grab", player.account);
}
}
|
There was a script I saw somewhere that allowed you to use just function onActionGrab as if if you were using function onPlayerTouchsMe or function onCreated anywhere on the server.