Help: NPC Driver dont move.
#4

Quote:
Originally Posted by bookknp
Посмотреть сообщение
Thx very much NAS, but car still dont move. (i copy ur code in gamemode)

this is code right?

PHP код:
FCNPC_GoTo(bot5,-2420.2437,-65.4272,35.1462, -1, -1true0.0true0.0250); 
Do you have SAfull.hmap in your scriptfiles folder? Also does it say something in the server log about MapAndreas?

One thing I just noticed is that you might have to wait a bit with FCNPC_GoTo after putting the NPC into a vehicle.

You can use this callback to know when the FCNPC finished entering. After FCNPC_EnterVehicle this will be called:

Код:
public FCNPC_OnVehicleEntryComplete(npcid, vehicleid, seat)
{
}
Check if npcid is bot5 in this callback and then use FCNPC_GoTo.

Your GoTo code seems correct, don't see anything wrong with it.
Reply


Messages In This Thread
Help: NPC Driver dont move. - by bookknp - 14.11.2018, 15:55
Re: Help: NPC Driver dont move. - by NaS - 14.11.2018, 16:00
Re: Help: NPC Driver dont move. - by bookknp - 14.11.2018, 16:15
Re: Help: NPC Driver dont move. - by NaS - 14.11.2018, 16:23
Re: Help: NPC Driver dont move. - by bookknp - 14.11.2018, 16:55

Forum Jump:


Users browsing this thread: 2 Guest(s)