Jump to content
Sign in to follow this  
breeze

help with a trigger please

Recommended Posts

I made a flight pattern for say a helo (chopper 1) When chopper 1 in 1/2 way through his pattern I want chopper 2 to start engines and begin the same exact flight pattern. So Can anyone help me with the type of commands I would use I am kind of new to triggers. I also am asking the question this way because I was hoping that I could LINK one set of waypoints to different choppers that were NOT grouped.

Thanks in advance

Share this post


Link to post
Share on other sites

What you can do is open up your mission.sqm and find the chopper you want to clone and copy all of the waypoints it has and paste it on the second one you want it to use in that file

Make sure the unit names are different. Then synchronize chopper 2 with the waypoint that is halfway through the pattern.

Share this post


Link to post
Share on other sites

Ok well that helps me with the way point question but I am asking the question with the trigger also because Im new to it and want to learn more how to use them effectively.

I am thinking that I would set up a presence trigger but I only see that to be teams not where I can set up one specific units name to set the trigger off

And for the second chopper I would set a hold waypoint until trigger 1 is True?

The thing is I have no idea of what commands I need or their syntax, So I am basically making a huge mission fro myself with different actions to reference and get the feel of this again because I been away so long.

And I have tried to synchronize other units to waypoints used by another unit and haven't seen it work yet.

I will try to do what you said because i have never seen that before, but really I want to learn the triggers

Share this post


Link to post
Share on other sites

For the trigger there are a few ways to do what you ask.

in the trigger condition put unitsname in thislist unitname is the name you name your unit.

another way is to group the trigger to the man, after you've placed the trigger and the man select group and drag a blue line between the two.

If you go back into the trigger you will see you have new options in the Activation menu. For most things leave it to Vehicle as that also applies to units.

Share this post


Link to post
Share on other sites

Is there a command to start the second chopper in motion? in other words if I understand you right, you are saying that in the condition line i add

"chopper1 in this list"

That will set the trigger to true or however it works but to send the second chjopper in motion I use what command?

Or do I set a way point for the second chopper as hold and in activation line say that once trigger1 is set to true go to waypoint 2?

If what I am saying is correct can you help me get the syntax right please??

Share this post


Link to post
Share on other sites

Chopper 1 has already waypoints so you have to make the same WP's for your second Chopper.

Then you can Link the Waypoints with F2 (Groups) - just drag a line between the start point of Chopper 2 and the WP of chopper 1 where Chopper2 has to start.

I dont think that you need a Trigger for that, but you can make it with Trigger:

The Trigger Solution:

Place a trigger on the rout of Chopper 1

Radius: big enough that you Chopper fly through

Side: The Chopper Side (US/Taki(Russ)...)

Name: starttrigger

Activation: Trigger

In the first WP of Chopper 1

condition: starttrigger=true

think that should work ....

Share this post


Link to post
Share on other sites

You bring up an interesting point or way of doing this can i have a group and stagger their release for patrolling with the use of triggers that would make everyone in the group share waypoints and I could do that with any unit.

Share this post


Link to post
Share on other sites
You bring up an interesting point or way of doing this can i have a group and stagger their release for patrolling with the use of triggers that would make everyone in the group share waypoints and I could do that with any unit.

I dont know about a way to share waypoints for groups in "normal" way.

my suggestion is for two groups (G1 = Chopper1 / G2 = Chopper2).

You can use the DAC Mod to make Randomized Patroling groups. DAC Generates a pool of WP's in a Trigger and if you want ... you can combine it with some user Waypoints.

DAC Download: http://www.armaholic.com/page.php?id=10621&highlight=DAC

Topic in BIS Forum: http://forums.bistudio.com/showthread.php?t=99753

Its very usefull to create full Dynamic Missions :)

Maybe it helps you out

Share this post


Link to post
Share on other sites

Why not just sync the first or second waypoint of the second chopper to a waypoint halfway through the pattern of the first chopper?

No triggers required.

Share this post


Link to post
Share on other sites

I am loving the help and response on this topic thanks so much Tonight I am really gonna have fun trying all of these ideas.

I never knew I had to sync a wp to another wp I always tried to synch another unit to a predefined set of wp's which is where I was going wrong.

I will check out the DAC mod as well I am really trying to grasp some of the basics where I can understand the parameters of triggers and initialization line syntax, and basic documents for the mission, so again thank you for all of the help.

---------- Post added at 04:46 PM ---------- Previous post was at 04:16 PM ----------

The trigger doesnt work I have tried it several times I need to try a different way :=(

Share this post


Link to post
Share on other sites

I would avoid using triggers to check their presence where choppers or aircraft are concerned. Aircraft can go off course to engage enemy units so missing even large triggers.

Also condition: starttrigger=true may not work cond: startrigger is all that's needed

Any way to start one chopper after another has reached a certain waypoint is this.

chopper1

waypoint on act: gochopper2=true

chopper2 init : gochopper2=false

place a trigger axis 0,0

Type: switch

condition : gochopper2

sync the trigger to the chopper2's first waypoint which should be placed directly over chopper2

However what happens if chopper1 never reaches the waypoint as it's crashed.

Use condition: gochopper2 or !(alive chopper1)

If you add a timers you can delay the start either by a fixed amount or random min240,mid240,max240 would delay take for 4mins after the go command, min0,mid40,max80 would delay it randomly 0-80 seconds.

with condition: gochopper2 or !(alive chopper1)

So this would take off with delay if timers are set after the chopper1 reaches the waypoint or is destroyed.

Now if chopper1 gets damaged and can't fly it would be better to replace !(alive chopper1) with !(canMove (vehicle chopper1))

So the final condition: gochopper2 or !(canMove (vehicle chopper1)) adjust the timers from 0 to whatever if delay is required.

Edited by F2k Sel

Share this post


Link to post
Share on other sites

Ok this works but I have a couple of questions if its ok? the condition

gochopper or !(alive chopper1) is on the same triggger after the condition gochopper2 seperated by a comma and a semicolon after it all?? so it looks like

gochopper2, gochopper or !(alive chopper1);

Then set the timers on another trigger? with the condition

true or gochopper or !(alive chopper1)

Will this last part check to see if chopper1 is alive and if so cant it just take off after it knows hes dead?

Share this post


Link to post
Share on other sites

I've updated and corrected a few things, I did make a typo or two. Sorry.

Share this post


Link to post
Share on other sites

I'll have to try them later when I get home but I cant thank you enough for the participation you do here I see alot of posts from you to many people looking for help. I'm sure it makes you better at scripting but it also makes a huge difference to people trying to learn thank you.

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  

×