FCNPC drive through ground
#1

Hello guys!
I have one problem with FCNPC: I drive through the ground.

OnGameModeInit:
Code:
MapAndreas_Init(MAP_ANDREAS_MODE_FULL);
if(FCNPC_InitZMap("scriptfiles/SAfull.hmap"))
	{
		printf("ZMap Init!");
	} else {
		printf("ZMap Init failed!");
	}
(I get ZMap Init!)
Then I create and spawn the npc:
Code:
npccar = AddStaticVehicle(560,460.4980,-1734.5624,9.5587,358.6630,1,1);
	NPC[0] = FCNPC_Create("Taxi_1");
	FCNPC_Spawn(NPC[0],15,460.4980,-1734.5624,9.5587);
	FCNPC_PutInVehicle(NPC[0], npccar, 0);
My test command to drive:
Code:
ocmd:test(playerid,params[])
{
	FCNPC_GoTo(NPC[0],1479.1648,-1735.6666,13.0888,MOVE_TYPE_DRIVE,5,true);
	return 1;
}
What is wrong?
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)