elaintahra 1 Posted May 25, 2016 Ok I'm sure this must be REALLY basic for you people but I've spent more than two hours trying to figure this out and searching.. Sorry if this is already somewhere but I feel literally dumb, I'm just trying to learn this How can I have an AI unit to reload his weapon from backpack between shooting targets and then continue? I'm calling this from the AI Init box _handle = execVM "shoot.sqf"; in shoot.sqf I have: If (alive player) then { unit1 doTarget Target1; unit1 doFire Target1; reload unit1; unit1 doTarget Target2; unit1 doFire Target2; }; The unit1 just stops firing after the reload animation Thanks for anything Share this post Link to post Share on other sites
gc8 970 Posted May 25, 2016 The unit1 just stops firing after the reload animation have you tried putting sleep command after the reload? Share this post Link to post Share on other sites
elaintahra 1 Posted May 25, 2016 have you tried putting sleep command after the reload? Yes just nothing happens, he shoots one clip and looks at me like an idiot If (alive player) then { unit1 doTarget Target1; unit1 doFire Target1; reload unit1; sleep 2; unit1 doTarget Target2; unit1 doFire Target2; }; Share this post Link to post Share on other sites
johnnyboy 3742 Posted May 25, 2016 Maybe after reload try "unit1 dowatch objnull;" to make him forget about Target1. This is suggested in the comments at the bottom of the doTarget page. Good luck. Share this post Link to post Share on other sites
elaintahra 1 Posted May 25, 2016 Maybe after reload try "unit1 dowatch objnull;" to make him forget about Target1. This is suggested in the comments at the bottom of the doTarget page. Good luck. Thank you, will try that Share this post Link to post Share on other sites
elaintahra 1 Posted May 31, 2016 Maybe after reload try "unit1 dowatch objnull;" to make him forget about Target1. This is suggested in the comments at the bottom of the doTarget page. Unfortunately this didn't work. So if anyone has a working shoot target(s) - reload - shoot that can go on forever, please post any hints. Thanks! Share this post Link to post Share on other sites