Home   Help Search Login Register  

Author Topic: Activating a trigger with 2 variables...  (Read 1261 times)

0 Members and 1 Guest are viewing this topic.

Waterman

  • Guest
Activating a trigger with 2 variables...
« on: 24 Oct 2002, 21:48:16 »
In a mission I'm making, I want the end trigger to activate only when a certain unit (in my case a tank), and all the enemy units in that area are dead.
Can someone(s) help me out.

Any help is appreciated,
Waterman. :)
« Last Edit: 24 Oct 2002, 21:49:10 by Waterman »

seanver

  • Guest
Re:Activating a trigger with 2 variables...
« Reply #1 on: 24 Oct 2002, 22:42:16 »
Hmmm I want the end trigger to activate only when a certain unit (in my case a tank)

I have not understood very well that. You mean that you want the tank to be in the trigger's area??

If it is so, let me see. Create the trigger over the area you want to be without enemies. Put "Activated by East (or west or restiance, it depends on who are your enemies) NOT PRESENT. Now put in the On activation: clear=true

Now another trigger covering the same area, group it (F2) with the tank. Put in the on condition field:

this AND clear

Now that trigger must be and end one. And it is done.

Offline Black_Feather

  • Former Staff
  • ****
  • I'll never forget you Daisey.
Re:Activating a trigger with 2 variables...
« Reply #2 on: 24 Oct 2002, 22:42:53 »
make a east not present trigger and in the condition field put

this && !alive tankname

Offline Blanco

  • Former Staff
  • ****
Re:Activating a trigger with 2 variables...
« Reply #3 on: 24 Oct 2002, 23:02:58 »
I'm at work right now, but I try to explain and imagine...



you can do this with two triggers.

1- Make a trigger the covers the whole area

- east or west (who's the enemy?) not present
- in activation : Eastdead = true


"Eastdead" is just a name, you take whatever you want.
Leave the rest alone...

2 - Make a second trigger, press F2 (group) and draw a blue line between your trigger and the tank.


- change type : END1..2..3 whatever end you want
- in condition : this && eastdead

That it ! Hope U understand...









Search or search or search before you ask.

Waterman

  • Guest
Re:Activating a trigger with 2 variables...
« Reply #4 on: 25 Oct 2002, 00:08:21 »
Enemy is West, and yes I want a tank to be in that area also.
But what you've told me should be enough.

Thanks, I'll try those...(tomorrow).
Need some sleep... :P

Cheers,
Waterman.


Waterman

  • Guest
Re:Activating a trigger with 2 variables...
« Reply #5 on: 25 Oct 2002, 21:35:22 »
Thanks to SeAnVeR, Black_Feather and Blanco for your help, but only Blanco way worked...

Cheers,
Waterman. :cheers: