#1

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
Reply
#2

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
Reply
#3

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.
Reply
#4

Quote:
Originally Posted by ssǝן‾ʎ
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.
Epic fail:

https://sampwiki.blast.hk/wiki/NPC:PauseRecordingPlayback
https://sampwiki.blast.hk/wiki/NPC:ResumeRecordingPlayback
LOL thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)