Why i don't see my NPC Zombie Bots after compile and use FCNPC?(+REP)
#1

Hello, can someone answer me? why i don't see my NPC Zombie Bots after compile the script without any warning/error ? i'm using FCNPC ? can someone answer me?
Reply
#2

Again, give people information to work with.
Do we just need to guess what your code is?
Reply
#3

man everything is working good.
here is my FCNPC Lines in the GM:
Code:
stock ZombieInit()
{
	FCNPC_SetUpdateRate(100);
	for(new i = 0; i < MAX_ZOMBIES; i++)
	{
		new name[24];
  		format(name, 24, "Zombie_%d", i + 1);
		new npcid = FCNPC_Create(name);
		new Random = random(sizeof(RandomZombieSpawns));
		FCNPC_Spawn(npcid,162,RandomZombieSpawns[Random][0],RandomZombieSpawns[Random][1],RandomZombieSpawns[Random][2]);
		FCNPC_SetHealth(npcid, 100);
		SetTimerEx("ZMOVE",100,1,"i",npcid);
		SetPlayerColor(npcid,COLOR_RED);
	}
	return 1;
}
stock FCNPC_GoToPlayerEx(npcid, playerid, Float:dist, Float:rangle, movetype = MOVE_TYPE_WALK, UseZMap = 0)
{
    new Float:x, Float:y, Float:z, Float:fa;
    GetPlayerPos(playerid, x, y, z);
    GetPlayerFacingAngle(playerid, fa);
    rangle += fa;
    x = (x + dist * floatsin(-rangle,degrees));
    y = (y + dist * floatcos(-rangle,degrees));
    FCNPC_GoTo(npcid, x, y, z,movetype,10,UseZMap);
}
stock FCNPC_Punch(npcid, Float:x, Float:y, Float:z, PunchResetDelay = 125)
{
	FCNPC_AimAt(npcid, x, y, z, 0);
    FCNPC_StopAim(npcid);
    FCNPC_SetKeys(npcid, 0x80 + 4);
    SetTimerEx("ResetNPCKeys", PunchResetDelay, false, "i", npcid);
    return 1;
}]
So help please
Reply
#4

anyhelp?
Reply
#5

Try to FCNPC_SetInterior(npcid, interiorid); or FCNPC_SetVirtualWorld(npcid, worldid);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)