Quote:
Originally Posted by i8bit
PHP Code:
//#CLIENTSIDE
function onKeyPressed(code, key){
if (key == "s"){
setAni("sword", NULL);
findAreaPlayers();
triggerAction("weapon", "DamageSystem", "onHit");
}
}
is this right? If not, what modifications or errors need to be fixed?
|
No, try to make your own researches about findAreaPlayers() and triggerAction(). I'm pretty sure you will find enough stuff about that in the NPC section on here, else you're not looking properly