NPC chase the nearest player
#7

Quote:
Originally Posted by NaS
Посмотреть сообщение
Could you post the related code? Otherwise we have to guess what could be the cause
Sorry about that, you are right

Код:
for(new i=0; i < MAX_PLAYERS; i++){
	    new Float:xp, Float: yp, Float: zp;
	    GetPlayerPos(playerid, xp, yp, zp);
        for(new iz = 0; iz < WaveZombies; iz++){
    		if(FCNPC_IsValid(Zombies[iz])){
		        if(IsPlayerInRangeOfPoint(Zombies[iz], 10, xp, yp, zp)){
		             FCNPC_GoToPlayer(Zombies[iz], playerid, FCNPC_MOVE_TYPE_RUN, FCNPC_MOVE_SPEED_RUN, false, 0.0, true, 0.0, 1.5, 250);
Reply


Messages In This Thread
NPC chase the nearest player - by matje - 21.09.2018, 12:14
Re: NPC chase the nearest player - by CodeStyle175 - 21.09.2018, 13:01
Re: NPC chase the nearest player - by Ritzy2K - 21.09.2018, 13:02
Re: NPC chase the nearest player - by ZiGGi - 21.09.2018, 13:41
Re: NPC chase the nearest player - by matje - 21.09.2018, 14:01
Re: NPC chase the nearest player - by NaS - 21.09.2018, 14:14
Re: NPC chase the nearest player - by matje - 21.09.2018, 14:21
Re: NPC chase the nearest player - by NaS - 21.09.2018, 14:41
Re: NPC chase the nearest player - by matje - 21.09.2018, 14:55

Forum Jump:


Users browsing this thread: 1 Guest(s)