Hey guys!
I'm just making a baddysystem. So I'm wondering how you communicate between Clientside and Serverside in an npc class. To make a bit more understandable:
Baddy Class ( if the baddy gets hit)
PHP Code:
function onActionhurt()
{
if (this.npchp > params[0])
{
this.npchp -= params[0];
this.chat = this.npchp;
}
else
{
this.npchp = this.npchpmax;
this.chat = this.npchp;
"-xpcalculator".Actionxp(this.npclevel);
}
}
Aight, so basicly what im doin is, whenever the baddy dies, it calls the public function "Actionxp" of the weapon "-xpcalculator". So everything works fine, if the baddy class is //#CLIENTSIDE. The problem is i dont want my baddies clientside, so my aim is to remove the //#CLIENTSIDE but if i do it he cant find the public function "Actionxp" anymore. Hope you got me and hope you got any resolutions for that
So far...