Question - 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: Question (
/showthread.php?tid=291761)
Question -
cruising - 21.10.2011
Hello
I got a question about this, is it possible with a command like "/pickmeup" and it creates a heli "cargobob with a NPC in" that you can enter and the NPC flies you a specific coords depending on what team you are in?
Something like this: ur somewhere in the map, you type /pickmeup and a heli lands 3 meters from you, you enter it and the NPC flies you to ur base.
Dream or possible?
Re: Question -
MP2 - 21.10.2011
NPCs can only follow pre-recorded paths, so yes, you could have for example a dialog list of destinations, but there's no NPCDriveTo or similar. You can't 'call' an NPC to land near you, unless to make a thousand different paths. Hopefully NPCs will be improved one day, but they haven't been touched at all since they were introduced.
Re: Question -
cruising - 21.10.2011
Quote:
Originally Posted by MP2
NPCs can only follow pre-recorded paths, so yes, you could have for example a dialog list of destinations, but there's no NPCDriveTo or similar. You can't 'call' an NPC to land near you, unless to make a thousand different paths. Hopefully NPCs will be improved one day, but they haven't been touched at all since they were introduced.
|
Then you should be able just to spawn a vehicle with that cmd, and at same time put a npc in that vehicle id, and then after like 10 sec, it "jumps" to a pre-recorded landing sequence ?
Re: Question -
MP2 - 21.10.2011
You can pause an NPC's playback and use SetVehiclePos (AFAIK).
Re: Question -
cruising - 21.10.2011
Quote:
Originally Posted by MP2
You can pause an NPC's playback and use SetVehiclePos (AFAIK).
|
What exactly do you mean bu pause? im not so good at NPCs at all..for now i just have recorded routs that players can enter to get back to their bases.