OFPEC Forum

Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started by: Morts on 05 Dec 2009, 12:22:57

Title: Target Range Script
Post by: Morts on 05 Dec 2009, 12:22:57
Hi guys,

ive searched over a few forums and cant find anything to help me.

Basically what i need is a script that will control 100m 200m and 300m (already placed) targets to control them up and down, and count how many points the lane has.

I've found one script on ofpec but it's not working due to downtime?

Thanks if anyone can help me :)
Title: Re: Target Range Script
Post by: DeanosBeano on 06 Dec 2009, 13:16:19
Quote
Basically what i need is a script that will control 100m 200m and 300m (already placed) targets to control them up and down

Sp or MP
control them back to the up position after being shot down or control them from the down position to up and down again if not shot ?
in a random? or linear timescale ?

Quote
and count how many points the lane has.

count if the target was hit whilst it was in an upright position after being placed upright by a script ?

How many lanes ?
only 1 target per requested distance ?
Kind of placed target ? (assume you mean the blue or red men cutouts ?

 its all doable you just need to explain a little more what you need, this will result in greater feedback

Title: Re: Target Range Script
Post by: Morts on 06 Dec 2009, 17:32:13
sorry a realise i was a bit brief.

its to work with Mp.

I want to set the time that the target will be in an upright position and in the down position.
I.e the target will be shown for 5 seconds and will be down for 3.

There are Four lanes

There is only one target at each requested distance, but i want to to come up more than once, (so if its possible for it to be controlled?

It is the red popup target.

I don't know if this last bit is possible but would it be able to be controlled by a placed object I.E a laptop. In the editor?
Title: Re: Target Range Script
Post by: Blacknite on 19 Dec 2009, 16:39:56
Try this:
Name the target "R1".
In the init field, I think you put something like this "this allowpopup false".
Then for a script put the following in:

R1 animate["terc",0];
~3
R1 animate["terc",1];

Now when the script executes, it will either go up for 3 secs or stay down for 3 secs, dont remember which...
Title: Re: Target Range Script
Post by: Blacknite on 16 Jan 2010, 05:32:00
Sorry, I was a bit off, its actually nopop=true that will keep the popup targets down.