Morts 0 Posted April 18, 2011 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
Chris1986 0 Posted April 18, 2011 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
Morts 0 Posted April 18, 2011 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
Chris1986 0 Posted April 18, 2011 Here , little demo mission of how it works . http://www.mediafire.com/download.php?72uz32s8fnshqcn Share this post Link to post Share on other sites
Morts 0 Posted April 18, 2011 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
Chris1986 0 Posted April 18, 2011 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
Morts 0 Posted April 18, 2011 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
Chris1986 0 Posted April 18, 2011 yeah i know what you mean , how come you cant use the Simple Targets? Share this post Link to post Share on other sites
Morts 0 Posted April 18, 2011 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
Chris1986 0 Posted April 18, 2011 you can setpos them , so they are hidden . Altho this will make your target smaller , but the effect will be the same . ---------- Post added at 04:09 PM ---------- Previous post was at 03:51 PM ---------- this should sort it for you http://www.mediafire.com/?m7f5c3genebgvs4 Share this post Link to post Share on other sites
Morts 0 Posted April 18, 2011 That works a treat mate, thanks :D Share this post Link to post Share on other sites
riouken 15 Posted April 18, 2011 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
Morts 0 Posted April 20, 2011 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
riouken 15 Posted April 21, 2011 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
Morts 0 Posted April 21, 2011 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