How do you make a player trigger a function in another player?
For example...
PHP Code:
//#CLIENTSIDE
function onKeyPressed(code, key)
{
if (key == "s")
{
//Trigger function in this weapon/ in player in this y, and x range
}
}
I though about it and the "damage block" idea was more complex then I thought. So I'm sticking with triggering a function for both the NPC and player in seperate lines.