Home   Help Search Login Register  

Author Topic: Ending a Mission??  (Read 561 times)

0 Members and 1 Guest are viewing this topic.

Offline NightJay0044

  • Former Staff
  • ****
  • Let's make OFPEC great again
    • My Steam Workshop
Ending a Mission??
« on: 29 Jun 2004, 00:33:34 »
Hi everyone, if anybody could help me with this. I need to know how to end my mission that I'm making.  

I need to know how to make an end trigger that will only activate when the specific unit enters the area, and when the first objective is complete and the two hinds are destroyed, and the trigger also needs to be able to recognize if the second objective is complete or failed, with the "three shilkas" and they all have names.

---Shilka Names-----
Shilka_1
Shilka2
Shilka (Objective 2, is optional)


----Hind Names-----
Mi1
Mi2 (Main Objective)

 ;D ,:)

If anybody could help me out, email me or reply to this note that would be great. Thanks.

Nightjay0044
Who's hyped for Arma4, long live Arma!

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Ending a Mission??
« Reply #1 on: 29 Jun 2004, 09:20:04 »
I use variables in a case like this, to pass information from one trigger to another.   So here I would do something like this:


Activation box:  whole group present
On Activation:   loonsHome=true

Condition:   (not alive hind1) and (not alive hind2)
On activation:   hindDead=true

Condition:   (not canMove shilka1) and (not canFire shilka1) and (not canMove shilka2) and (not canFire shilka2)
On activation:   shilkaDead=true

Type:    End#1
Condition: loonHome and hindDead
On Activation:  1 objStatus "done"; 2 objStatus "fail"

Type:    End#2
Condition: loonHome and hindDead and shilkaDead
On Activation:  1 objStatus "done"; 2 objStatus "done"

Syntax not guaranteed and these triggers may not exactly ft your mission, but you get the idea.    Use canFire and canMove for vehicles because sometimes they can appear to be destroyed when they are not, thus confusing the player and screwing up the mission.  It doesn't matter so much with choppers because they get a second smash when they hit the ground which usually takes care of them.

Hope that all makes sense.
Plenty of reviewed ArmA missions for you to play

Offline NightJay0044

  • Former Staff
  • ****
  • Let's make OFPEC great again
    • My Steam Workshop
Re:Ending a Mission??
« Reply #2 on: 29 Jun 2004, 15:53:45 »
There are two triggers all together then? Don't I group the player to the triggers? Thanks.
Who's hyped for Arma4, long live Arma!

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Ending a Mission??
« Reply #3 on: 29 Jun 2004, 17:07:43 »
No no, in my previous message there are five triggers.    (Five "On Activation" lines you see, I thought it was obvious, sorry.)     Group the player to the first one (whole group present).

There is always a tension in a situation like this:  on the one hand you want to use as few triggers as possible to keep the mission design elegant and reduce lag.   On the other hand you want to use a seperate one for each thing that happens to facilitate control of the mission.     Deciding on what is the right number of triggers is partly a question of taste an party one of circumstance.  

For example, in this case you could combine the first (group present), second (hind) and fourth triggers to produce:

Activation box:  whole group present
Type:  End#1
Condition:   this and (not alive hind1) and (not alive hind2)
On Activation:    1 objStatus "done"; 2 objStatus "fail"
Plenty of reviewed ArmA missions for you to play

Offline NightJay0044

  • Former Staff
  • ****
  • Let's make OFPEC great again
    • My Steam Workshop
Re:Ending a Mission??
« Reply #4 on: 29 Jun 2004, 19:43:50 »
Alright, thanks for your help, i should get it figured out now. Apprciate it.
Who's hyped for Arma4, long live Arma!