Home   Help Search Login Register  

Author Topic: Shots fired...alarm goes on..after 10 seconds it should be over  (Read 584 times)

0 Members and 1 Guest are viewing this topic.

Honza

  • Guest
...new problem....I made a trigger which is set on by shots of my soldiers(8 units....named; unit1,unit2,..etc.)......the trigger sounds the alarm...after 10 seconds it should go off.....but little bugger just keep's hauling :(....how can I end this......??


in each unit's initialization field I wrote:

this addEventHandler ["fired",{shot1=true}]; shot1=false;

and added 3 trigger's :

First trigger

condition: shot1

on Activation: AlarmOn=true


Second trigger

condition: AlarmOn

On Activation: AlarmOff=true

Effect: alarm

Third trigger

condition: AlarmOff

On Activation: AlarmOn=false


.........please help! ???....don't know where I went wrong...
« Last Edit: 22 Jul 2003, 00:06:14 by Honza »

_hammy_

  • Guest
Re:How to end a trigger in specified time?
« Reply #1 on: 21 Jul 2003, 03:35:09 »
eh? i dont understand your Q, plz explain it a bit better.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:How to end a trigger in specified time?
« Reply #2 on: 21 Jul 2003, 11:38:37 »
I had to read it twice, but I think I know what you want.

An alarm sounds.    You want to switch it off after a specified time.

Yes, you're right, it is easy.   ;D  

Create a trigger set to repeatedly

Condition:   alarmOn
Effects:   alarm

When the variable alarmOn is true the alarm will be on.    When the variable is false the alarm is off.   So you might have two triggers

Activation:    east present
On Activation:    alarmOn=true

Activation:   east present
Countdown:     60    60    60
On Activation:   alarmOn=false

So when east arrive the alarm sounds, but it stops after one minute.


Plenty of reviewed ArmA missions for you to play