NPC Bot bug
#1

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?
Reply
#2

u gotta set the NPC's interior ID.

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

Reply
#3

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
Reply
#4

Nobody can help me?
Reply
#5

I have the same problem... :/
Reply
#6

lift ?
Reply
#7

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


Forum Jump:


Users browsing this thread: 1 Guest(s)