// Test autobegin stuff: // // Case 1: autobegin disabled (ignores any input even though not inert) // Case 2: autobegin causes script to stop (should attack enemy if any) // Case 3: autobegin causes script to sleep (resumes patrol with autoend) //debugmode 0 //debugaievents 1 debugaiflags 240 setstance crouching inert 0 // enable only one of the following: //call autobegindisabled //call autobeginstop call autobeginsleep gotolabel beginpatrol_1 :autobegindisabled eventdisable autobegin return :autobeginstop onevent autobegin gotolabel scriptstop return :autobeginsleep onevent autobegin gotolabel scriptsleep return :beginpatrol_1 gotoactor pathnode9 gotoactor pathnode39 gotoactor pathnode38 gotoactor pathnode33 gotoactor pathnode5 gotolabel beginpatrol_1 :endpatrol_1 :resumepatrol1 setstance crouching resumepatrol beginpatrol_1 endpatrol_1 best :scriptstop setstance standing stop :scriptsleep setstance standing onevent autoend gotolabel resumepatrol1 sleep