NPC problem
#1

Hi , I have a big problem when using RNPC include: (2weeks still didn't find the problem...)

-I just noticed we can't create RNPC & set its pos in the same time

pawn Код:
public ZombieBot(playerid) //This is the callback of the timer ZombieBot which called each 5 sec
{
new npc = CreateRNPC(str); // I create the NPC
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z); // Get the player's pos
SetRNPCPos(npc,x,y,z); // Teleport the NPC to the player's pos


return 1;
}
The problem is the pos of the npc isn't set... like if the CreateRNPC create the NPC & don't spawn it....

Thanks
Reply


Messages In This Thread
NPC problem - by Saw® - 18.11.2013, 10:04
Re: NPC problem - by RayDcosta - 18.11.2013, 10:23
Re: NPC problem - by Saw® - 18.11.2013, 10:38
Re: NPC problem - by TonyII - 18.11.2013, 11:39

Forum Jump:


Users browsing this thread: 4 Guest(s)