SA-MP Forums Archive
SA-MP How make NPC Surfing in Vehicle - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: SA-MP How make NPC Surfing in Vehicle (/showthread.php?tid=663470)



SA-MP How make NPC Surfing in Vehicle - dudu_Insane - 02.02.2019

I need to get the npc to follow the vehicle, I've tried to do with an actor and a timer, but it takes a while to update and it seems like it's lagged.

For example the NPC surfing on bobcat:



If it is not possible I would also like to know if it is possible to create a skin as an object in some way without it being invisible, even with some plugin.


TY



Re: SA-MP How make NPC Surfing in Vehicle - dudu_Insane - 03.02.2019

@UP someone


Re: SA-MP How make NPC Surfing in Vehicle - NaS - 03.02.2019

You can use the FCNPC Plugin for that.

You need to create an NPC, spawn it and then use FCNPC_SetSurfingVehicle and FCNPC_SetSurfingOffsets to attach the NPC to the given vehicle at the specified offset. After that you can make it shoot or do an animation if needed.


Re: SA-MP How make NPC Surfing in Vehicle - dudu_Insane - 05.02.2019

Quote:
Originally Posted by NaS
Посмотреть сообщение
You can use the FCNPC Plugin for that.

You need to create an NPC, spawn it and then use FCNPC_SetSurfingVehicle and FCNPC_SetSurfingOffsets to attach the NPC to the given vehicle at the specified offset. After that you can make it shoot or do an animation if needed.
TY brow