Welcome, Guest Monday 21st April 2014, 16:34:47
   Home   Help Search Login Register  

OFPEC Forum

Author Topic: Target Range Script  (Read 310 times)
0 Members and 1 Guest are viewing this topic.
Morts
*
Offline Offline


« 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 Smiley
Logged
DeanosBeano
Addons Depot Staff
*****
Offline Offline


SirDeanosbeano bstowed on me by sui ;)


WWW
« Reply #1 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

Logged

I love ofp
Morts
*
Offline Offline


« Reply #2 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?
Logged
Blacknite
*
Offline Offline

Chiefs runs the navy!


« Reply #3 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...
Logged
Blacknite
*
Offline Offline

Chiefs runs the navy!


« Reply #4 on: 16 Jan 2010, 05:32:00 »

Sorry, I was a bit off, its actually nopop=true that will keep the popup targets down.
Logged
Pages: [1]   Go Up
  Send this topicPrint  
 
Jump to: