Jump to content
Sign in to follow this  
Morts

Popup trigger

Recommended Posts

Hi guys,

I've found a few scripts that work a whole target range, but i would like a trigger that activates a single target, so that, as you walk down a path, hit the trigger, one or however many the trigger is set to, pops up around you.

Any help would be much appreciated

Morts

Share this post


Link to post
Share on other sites

Can do this via triggers along the path quite easy.

Name you targets ( e.g Target1 etc etc )

i would put this on the init of the target so they start " dead "

Target1 SetDammage 1

Place trigger

Act - BLUFOR - Present

OnAct - Target1 SetDammage 0

Hope this helped!

Share this post


Link to post
Share on other sites

Unfortunately that didn't work, setting damage doesn't move it down, so wasn't able to test if the trigger works to make it pop up.

Share this post


Link to post
Share on other sites

Ah I see how it works with the simple target, is there anyway it could work with the popup target?

Share this post


Link to post
Share on other sites

i dont get it? you want a popup target to act like the simple targets?

is that not the same as using the simple targets?

Share this post


Link to post
Share on other sites

Basically, the targets used are the pop-up targets, i need them to start down, then when the player hits the trigger, they pop up, when shot they go back down, and stay down, and to be reset at the beginning, it sounds quite awkward, but theres no way to explain it easily :/

Share this post


Link to post
Share on other sites

I could, but the idea is for the targets to be hidden when down, the simple targets are bright blue and the little triangle at the bottom sticks up, making the position of them obvious

Share this post


Link to post
Share on other sites

use this in the init.sqf or an init field of one of the targets.

This will stop all popup targets from popping back up.

nopop=true;

You can control popup targets state by using this in a trigger or script.

0 is up and 1 is down.

target_name_here animate["terc", [color="Red"]0[/color]];

Share this post


Link to post
Share on other sites
use this in the init.sqf or an init field of one of the targets.

This will stop all popup targets from popping back up.

nopop=true;

You can control popup targets state by using this in a trigger or script.

0 is up and 1 is down.

target_name_here animate["terc", [color="Red"]0[/color]];

That's awesome, would the reset script work the same, just making them all go back down in a similar way to the simple targets?

Share this post


Link to post
Share on other sites

Yes if you want the targets to stay up for a set time you could do something like this:

_targets = [t1_1,t1_2,t1_3,t1_4,t1_5,t1_6,t1_7];
{_x animate["terc", 1]} forEach _targets;

hint "Range is setting up, Get ready to fire!";

sleep 8;

hint "Begin firing!";

{_x animate["terc", 0]} forEach _targets;

sleep 15;

{_x animate["terc", 1]} forEach _targets;

hint "Range is complete.";


Or you could put them up with one script and put them down with another if you want to control it your self.

Share this post


Link to post
Share on other sites

The idea behind it is a CQB lane, so they pop up when the player hits a trigger, obviously go down when shot, or a few seconds after the first hit, then stay down, until it is reset at the beginning.

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  

×