NPC's - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: NPC's (
/showthread.php?tid=95578)
NPC's -
Kanji_Suzuki - 04.09.2009
Hello
is there a way to make the NPC's stop is someone or another npc gets in front of it?
and when that person moves the npc starts moving again,
can it be done?
Thanks
Jack Bull
Re: NPC's -
Kanji_Suzuki - 04.09.2009
Quote:
Originally Posted by ssǝן‾ʎ
As I currently understand it - no. You can run a timer with checks and easily detect if a player is in front, and from there you can stop the recording, but I don't know of any way to resume the recording from the point it stopped. A PauseRecordingPlayback would be a very useful function and shouldn't be too hard to implement.
|
Yeah it needs to be added, that function will be very very nice to have
Re: NPC's -
Kalcor - 04.09.2009
Quote:
Originally Posted by ◄╝J.Bull╚►
Hello
is there a way to make the NPC's stop is someone or another npc gets in front of it?
and when that person moves the npc starts moving again,
can it be done?
Thanks
Jack Bull
|
See taxi_ls_test.pwn in npcmodes. It has some very basic AI for stopping and starting if a player is in front of the vehicle.
And a note: record taxi and bus NPCs driving slowly so the pause/resume is more smooth and this should also look better if they change routes/recordings at a certain point.
Re: NPC's -
Kanji_Suzuki - 05.09.2009
Quote:
Originally Posted by ssǝן‾ʎ
|
LOL thanks