Home   Help Search Login Register  

Author Topic: Two Triggers  (Read 615 times)

0 Members and 1 Guest are viewing this topic.

B-2-0

  • Guest
Two Triggers
« on: 01 Sep 2003, 16:17:28 »
How do i get a trigger (trig1) to be activated only when another trigger (trig2) has been activated?

I have tried trig2 = true in the condition field of trig1 but that doesn't work, i get an 'unknown operator' error before the =.

Thanx in advance :)
« Last Edit: 01 Sep 2003, 16:20:34 by B-2-0 »

mikeb

  • Guest
Re:Two Triggers
« Reply #1 on: 01 Sep 2003, 16:23:01 »
as it'a a condition you put trig2==true.  or just put trig2

trig2 = true would go in the activation field of trig2 of course

Offline Burn

  • Members
  • *
Re:Two Triggers
« Reply #2 on: 01 Sep 2003, 16:23:54 »
I would probably, set a variable true when trig#2 has been activated,
n' then use that in trig#1's condition field.
Sumtin' like this: Condition: this && variable ::)
syntax is not guaranteed :P... (I probably missed out some brackets or sumtin' :))

[edit]
 :oDAMN... I was too slow :'(... ;D
« Last Edit: 01 Sep 2003, 16:25:38 by Bizon »

LAPD

  • Guest
Re:Two Triggers
« Reply #3 on: 01 Sep 2003, 16:24:10 »
In your mission's init.sqs file you write:
OBJ1 = False

In the second trigger activation field you write:
Code: [Select]
OBJ1 = True
When the second trigger will be activated the first trigger will go off with this condition:

Code: [Select]
OBJ1 == True
I'm 90% sure it's like this. Haven't check it.
Good Luck :).

Offline Burn

  • Members
  • *
Re:Two Triggers
« Reply #4 on: 01 Sep 2003, 16:34:01 »
Quote
I have tried trig2 = true in the condition field of trig1 but that doesn't work, i get an 'unknown operator' error before the =.
Trig#2
on activation: trig2=true

Trig#1
condition: trig2

U can't put trig2=true as a condition, only trig2  ;)

B-2-0

  • Guest
Re:Two Triggers
« Reply #5 on: 01 Sep 2003, 17:32:04 »
If i have this trig relying on another condition also, do i just put:

First condition blah blah  AND Trig2

in the condition field?

Thanx guys :thumbsup:

mikeb

  • Guest
Re:Two Triggers
« Reply #6 on: 01 Sep 2003, 19:49:54 »
if by "trig2" you mean that the variable "trig2" was made true in that other trigger, then yes!

EDIT: sorry, confusing - yes just use the AND, that works
« Last Edit: 01 Sep 2003, 19:51:14 by mikeb »

Offline Ottie

  • Members
  • *
  • And you think this is personal
Re:Two Triggers
« Reply #7 on: 02 Sep 2003, 16:48:32 »
you can also use the famous game logic units
If you can't beat them, buy them