Home   Help Search Login Register  

Author Topic: Trigger conditions  (Read 494 times)

0 Members and 1 Guest are viewing this topic.

BrAinOfJ

  • Guest
Trigger conditions
« on: 01 Dec 2003, 15:16:44 »
2 things
1.How do i make it so a trigger will 1st check to see if another trigger has been completed before it activates

eg trigger#1(end1) only happens if trigger#2(east. Not present)

can you use if then else statements in the activation fields? I havent seen this explained in any tutes.

eg IF condition=complete THEN end ELSE do condition

2.Can you make a trigger that will see if a player is above a preset altitude, then activating its switch (or whatever)?

eg. aircraft must stay below 50 feet or a trigger is activated and the enemy targets and fires on them. (of course youd need an opposite trigger for when the player falls back below 50ft)
« Last Edit: 01 Dec 2003, 15:20:31 by BrAinOfJ »

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Trigger conditions
« Reply #1 on: 01 Dec 2003, 16:49:18 »
grrrrr ... I wrote a whole reply to this and the server monster ate it.

trig1

on activation:   var1=true

trig2

condition var1

The second trigger is fired whenthe variable var1 is set to true.   Triggers are themselves if-then operators, you can't do else.   else is just another trigger.

syntax almost certainly hopelessly wrong - it not my strong point - but try something like

condition:  getPos loon1 select 2 > 50
Plenty of reviewed ArmA missions for you to play

gundernak

  • Guest
Re:Trigger conditions
« Reply #2 on: 01 Dec 2003, 16:51:38 »
you have to create a variable, as the followings (let's name it condition01)

put this line into init.sqs:

condition01 = false

then put this line to the trigger condition field which you want to activate only when the other trigger activated:

condition01

finally put this line to your other trigger on activation field:

condition01 = true

It means your trigger will be activated only when condition01 variable become true...

Offline Ottie

  • Members
  • *
  • And you think this is personal
Re:Trigger conditions
« Reply #3 on: 01 Dec 2003, 17:43:09 »
You can also solve this problem with game logics
If you can't beat them, buy them

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:Trigger conditions
« Reply #4 on: 02 Dec 2003, 00:12:38 »
Quote
You can also solve this problem with game logics

Well Ottie, there are sooo many ways how to do it, but
how would they help him, if nobody tells, how to use 'em  ;D

Gamelogics are off course a way, and if you click on the link
below, you may even figure out the "HowToMake"  ;)

http://www.ofpec.com/yabbse/index.php?board=6;action=display;threadid=12426

~S~ CD
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted