Hello, I would like some help from the global script team, there seems to be a problem with the NPC-Server on infamous...
I created a weapon, -System/Core and placed in it the following code:
PHP Code:
function onActionServerSide(cmd)
{
echo("Hai");
}
//#CLIENTSIDE
function onCreated()
{
removetiledefs();
addtiledef("pokeSMOT_InfamousTiles.png", "infamous_" , 0);
loadmap("Infamous.gmap");
triggerServer("gui",name,"d00d");
}
function onPlayerchats()
{
if(player.chat=="/reconnect")
{
serverwarp("Infamous");
}
}
The onCreated() function is not called, thus the serverside function i was using to test the onCreated() call was also not called.
Mind me if there is some stupid mistake i made, having some IRL trouble and am not really myself right now...