Posts: 43
Threads: 3
Joined: Sep 2009
Reputation:
0
Hi,
is it somehow possible to use different states for NPCs so that once the recording is over it enters a pausing state untill a certain time before restarting?
I'm working on some public transport NPCs and I want the busses to leave at specific times, I just can't figure out how to do that..
Any help on this would be greatly appreciated
Posts: 2,593
Threads: 38
Joined: Aug 2007
Reputation:
0
Use a timer to run a public callback that has the beginnings of your recordings once a recording is finished.
Posts: 43
Threads: 3
Joined: Sep 2009
Reputation:
0
You have to bear with me, it's been years since I last worked on samp scripts..
How would I do that? Can't seem to find any good help on the wiki. All I really need is to make a check to see what the minute is, then start playback if the minute is more than 15 and less than 17.. Or more precisely start specific recordings, since I'll make each bus have two routes.. One only being driven once every hour..
I hope to get it all done and working before 0.3 final
Posts: 384
Threads: 20
Joined: Mar 2008
Reputation:
0
I would think you can just use PauseRecordingPlayback then set a timer and use ResumeRecordingPlayback when you want to un-pause
Posts: 43
Threads: 3
Joined: Sep 2009
Reputation:
0
I've spent alot of time trying to do this now..
I just can't get it to work..
I guess someone else would just be able to write it without even thinking, but that's not me
Posts: 1,896
Threads: 102
Joined: Oct 2008
Quote:
Originally Posted by scandragon
You have to bear with me, it's been years since I last worked on samp scripts..
|
you mean you registered a couple of days ago and your only just learning because Timers are easy to make.