SA-MP Forums Archive
NPC Bot bug - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: NPC Bot bug (/showthread.php?tid=108701)



NPC Bot bug - _GriLLeX_ - 15.11.2009

I created three bots on interior, when I enter the building where they were created I see that the bot will "lift" from their position what can be and how do I fix?


Re: NPC Bot bug - notime - 15.11.2009

u gotta set the NPC's interior ID.

public OnPlayerConnect(playerid)
{
if (IsPlayerNPC(playerid))
{
SetPlayerInterior(playerid, [here the interior id]);
return 1;
}
}




Re: NPC Bot bug - _GriLLeX_ - 15.11.2009

Quote:
Originally Posted by notime
u gotta set the NPC's interior ID.

public OnPlayerConnect(playerid)
{
if (IsPlayerNPC(playerid))
{
SetPlayerInterior(playerid, [here the interior id]);
return 1;
}
}
Yes, I alredy set the Interior ID and the problem continue


Re: NPC Bot bug - _GriLLeX_ - 15.11.2009

Nobody can help me?


Re: NPC Bot bug - DjSterios - 18.12.2009

I have the same problem... :/


Re: NPC Bot bug - dice7 - 18.12.2009

lift ?


Re: NPC Bot bug - Dark_Kostas - 18.12.2009

Try to remove the IsPlayerNPC return from OnPlayerConnect and use SetPlayerInterior at OnPlayerSpawn