Jump to content
Sign in to follow this  
usarmy19dsniper

Moving Popup Target E's

Recommended Posts

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

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 by usarmy19dsniper

Share this post


Link to post
Share on other sites

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×