Need help with NPC's
#1

Hey, I got a little problem that the bot is running through objects and buildings. The chasing works well but it literally teleports to the playerid once there is a object in between them. I use RNPC
pawn Код:
public BotFunctioning(playerid)
{
    new target = GetClosestBot(playerid);
    if(GetDistanceBetweenBots(target, playerid) <= 20)
    {
        new Float:X, Float:Y, Float:Z;
        GetPlayerPos(playerid, X,Y,Z);
        RNPCRunTo(target,X,Y,Z);
        /*if(GetDistanceBetweenBots(target, playerid) <= 1.5)
        {
        SendClientMessage(playerid, -1,"The bot got you.");
        }*/

    }
    else return 1;
    return 1;
}
Reply


Messages In This Thread
Need help with NPC's - by TonyII - 19.10.2013, 00:35
Re: Need help with NPC's - by Mauzen - 19.10.2013, 02:25
Re: Need help with NPC's - by Pottus - 19.10.2013, 02:34
Re: Need help with NPC's - by TonyII - 19.10.2013, 16:50
Re: Need help with NPC's - by Pottus - 19.10.2013, 16:52

Forum Jump:


Users browsing this thread: 3 Guest(s)