OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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
-
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 :)
-
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
-
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)
-
You can put a trigger up there too can't you? ???
-
Maybe, haven't thought of that. That's even better :)
-
Thanks guys...it all makes sence again..
[RT]-SuperTron