FCNPC flying zombies
#3

I updated my function, but not my zombies aren't moving and attacking me anymore
Код:
function ZMOVE(npcid)
{
	new Float:p[3];
	new Float:Z;
	foreach(Player,i)
	{
	    GetPlayerPos(i,p[0],p[1],p[2]);
	    GetPointZPos(p[0],p[1],Z);
		for(new N = 0; N < MAX_ZOMBIES; N++)
		{
			FCNPC_GetPosition(ZombieInfo[N][zID], ZombieInfo[N][zX], ZombieInfo[N][zY], ZombieInfo[N][zZ]);
			if(IsPlayerInRangeOfPoint(npcid,50,p[0],p[1],p[2]))
			{
				FCNPC_GoTo(npcid,p[0],p[1],p[2],MOVE_TYPE_RUN,10,1);
				if(Z - 3.0 > ZombieInfo[N][zZ]) FCNPC_Stop(ZombieInfo[N][zID]);
 				if(IsPlayerInRangeOfPoint(npcid,1,p[0],p[1],p[2]))
				{
					FCNPC_Punch(npcid,p[0],p[1],p[2],125);
				}
			}
		}
	}
	return 1;
}
Reply


Messages In This Thread
FCNPC flying zombies - by SkiT'aZ - 12.02.2015, 11:53
Re: FCNPC flying zombies - by IndependentGaming - 12.02.2015, 12:01
Re: FCNPC flying zombies - by SkiT'aZ - 12.02.2015, 12:46
Re: FCNPC flying zombies - by SkiT'aZ - 13.02.2015, 16:24

Forum Jump:


Users browsing this thread: 1 Guest(s)