/startrec <filename> - Start Recording a path file.
/stoprec - Stop Recording
/playfile <filename> - Playback a recorded path
Code: Select all
#event PlayFile "[MQ2] playfile #1#"
#include advpath.inc
Sub Main
/call InitAPFVars 1 15 20
/squelch /alias /startrec /echo record
/squelch /alias /stoprec /echo stop
/squelch /alias /playfile /echo playfile
:Main_Loop
/call AdvPathPoll
/delay 5
/doevents
/goto :Main_Loop
/return
Sub WaitTilThere
:LoopTilThere
/if (${PathingFlag}==1) {
/call AdvPathPoll
/delay 1
/doevents
/goto :LoopTilThere
}
/return
Sub Event_PlayFile(string Line, string PathFile)
/call PlayFunction "${PathFile} 1 nf nopp noz"
/call WaitTilThere
/return



