09.11.2018, 16:34
hello friends, I'm trying to get an npc to follow a player using FCNPC but I'm new and I do not know if I'm doing something wrong ... the npc does not follow the player, why is this happening? what is the way the NPC follow the player?
PHP код:
public OnGameModeInit()
bot1 = FCNPC_Create("Officerino");
printf("Officerino: %i", bot1);
public Follower(playerid)
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
FCNPC_GoTo(bot1, x, y, z, MOVE_TYPE_SPRINT, .UseMapAndreas = true);
FCNPC_GoToPlayer(bot1, playerid);