Arma 3
How to get targets to pop back up with or without scripts
I want to setup a shooting range for me and my friends to practice our shooting for our missions. I was going to use the yellow targets but as far as i know they don't pop back up once shot.

is there a script i could run for them to flip/pop back up ?.

Thanks.
< >
Показані коментарі 12 із 2
The first thing you need to do is give your targets a name (e.g., target1, target2, etc.). Then put all the named targets into an array, as follows:

Targets = [target1, target2, target3];

Next, add event handlers to those targets:

{ _x addEventHandler ["HIT", { _x animate ["terc", 1]; //to make the target stay down when hit }]; } forEach Targets;

Next, add a laptop, or some other object you can use to reset the targets, and add this Action to the object Init property:

this addAction ["Reset Targets", { { _x animate ["terc", 0]; //pops the targets back up } forEach Targets; }];
Автор останньої редакції: Alaskan Glitch; 3 берез. 2021 о 22:10
Цитата допису Alaskan Glitch:
The first thing you need to do is give your targets a name (e.g., target1, target2, etc.). Then put all the named targets into an array, as follows:

Targets = [target1, target2, target3];

Next, add event handlers to those targets:

{ _x addEventHandler ["HIT", { _x animate ["terc", 1]; //to make the target stay down when hit }]; } forEach Targets;

Next, add a laptop, or some other object you can use to reset the targets, and add this Action to the object Init property:

this addAction ["Reset Targets", { { _x animate ["terc", 0]; //pops the targets back up } forEach Targets; }];
Thanks. Worked like a charm :)... I did have a question about seeing Custom Ranks over players heads in some Arma 3 Videos recently. How can I add those as well ?. like Squad leader, Private 1st class etc. How can i go about adding the insignia's over their heads ?.

Thanks for the help again.
< >
Показані коментарі 12 із 2
На сторінку: 1530 50

Опубліковано: 1 берез. 2021 о 5:41
Дописів: 2