SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 24/06/2015, 01:11 PM   #1
Carper
Little Clucker
 
Carper's Avatar
 
Join Date: Oct 2013
Posts: 32
Reputation: 5
Question FCNPC drive through ground

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?
Carper is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Fix this? FCNPC MBilal Scripting Help 6 10/10/2014 07:39 PM
FCNPC help blackwave Scripting Help 1 20/04/2014 03:36 AM
FCNPC... xganyx Scripting Help 5 25/02/2014 12:03 PM
Barricade is in the ground, How can I make it above ground? [TC]XxJuggaloxX Scripting Help 1 13/01/2012 02:29 AM


All times are GMT. The time now is 02:15 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.