usarmy19dsniper 0 Posted May 1, 2009 I am making an advanced marksmanship range and I am looking for a way to make popup targets move laterally like they do in the SP armory. Any advice/help? I have looked in the Arma directory and couldn't find any of the rifle range side missions for the armory. Share this post Link to post Share on other sites
PhilippRauch 0 Posted May 1, 2009 Do a loop with setPos ? Share this post Link to post Share on other sites
usarmy19dsniper 0 Posted May 1, 2009 (edited) I did find the armory1.intro in the missions.pbo. In the armory1.intro\data\scripts\tryout\prichals\ folder it has a list of the firing range script, just a matter of picking out what I need. Anybody able to help with this? Edited May 1, 2009 by usarmy19dsniper Share this post Link to post Share on other sites
usarmy19dsniper 0 Posted May 1, 2009 Found this in the targetmove.sqf private ["_tgt", "_dir", "_start", "_startX", "_startY", "_inc"]; _tgt = _this select 0; _dir = _this select 1; _start = position _tgt; _startX = _start select 0; _startY = _start select 1; _inc = 0.1 + (1 / ((_tgt distance player) / 2)); switch (_dir) do { case 0: { while {LIB_tryout && (((position _tgt) select 0) < (_startX + 29.5))} do { _tgt setPos [((position _tgt) select 0) + _inc, _startY, 0]; sleep 0.01; }; }; case 1: { _inc = -_inc; while {LIB_tryout && (((position _tgt) select 0) > (_startX - 29.5))} do { _tgt setPos [((position _tgt) select 0) + _inc, _startY, 0]; sleep 0.01; }; }; default {}; }; LIB_targetMoved = true; true Share this post Link to post Share on other sites
dreamweaver 0 Posted June 10, 2009 Do you had any luck with that script? I tried it too, but I cant get it to work. I am looking for moving targets too. Share this post Link to post Share on other sites