OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: RT-SuperTron on 04 Feb 2004, 17:21:03

Title: Very simpel trigger question..
Post by: RT-SuperTron on 04 Feb 2004, 17:21:03
Once uppon a time, there was a little gamer who kept forgetting the most simple commands.. ::)

Status:
Radio trigger Alpha, placed on a hangar, size 15 x 15.
Triggers the "Alarm" sound under Effects/Trigger, when the channel is used of course..used to tell the personal on the airbase to "scramble"

Problem:
How do I shutdown/turn off the "Alarm" ?? It would be nice to have the "Alarm" sounding for about 15 secs.


Thanx in advance.. :-*
[RT]-SuperTron
Title: Re:Very simpel trigger question..
Post by: Wildebeest on 04 Feb 2004, 17:42:54
When I do these kinds of things I cheat like a cardplayer. I let a gamelogic say the sound and then I literally kill it.

GameLogicName say "alarm"

~14

deletevehicle GameLogicName

Or you could kill the GameLogicName any way you wish. This is just my stupid method :)
Title: Re:Very simpel trigger question..
Post by: macguba on 04 Feb 2004, 18:20:08
Create a trigger.   Set it to repeatedly.

Condition:  alarmOn
Effects:   the alarm, obviously

When the variable alarmOn is true, the alarm will sound.  When it is false, it will not.    Use anything you like - probably other triggers - to switch the variable from true to false and hence the sound on and off.


But I like Wildebeest's way.  ;D
Title: Re:Very simpel trigger question..
Post by: Wildebeest on 05 Feb 2004, 09:05:58
Thanks macguba, I like yours too. You see the good thing about using a gamelogic is that you can actually put it up in the air in a tower and make it the alarm's loudspeaker. That way you can hear where it's coming from.  8)
Title: Re:Very simpel trigger question..
Post by: Artak on 05 Feb 2004, 10:33:15
You can put a trigger up there too can't you?  ???
Title: Re:Very simpel trigger question..
Post by: Wildebeest on 05 Feb 2004, 10:37:04
Maybe, haven't thought of that. That's even better  :)
Title: Re:Very simpel trigger question..
Post by: RT-SuperTron on 13 Feb 2004, 02:47:39
Thanks guys...it all makes sence again..
[RT]-SuperTron