ok thx guys
just to make sure I understood correctly:
PHP Code:
//#CLIENTSIDE
function onKeypressed(){
if (keydown2(keycode(d),true)){
player.weapon.trigger("weaponFired");
}
}
public function onWeaponFired() {
player.chat = "test";
}
Is this the way it should be?