OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Dandy on 18 May 2003, 17:54:21

Title: Alarm off
Post by: Dandy on 18 May 2003, 17:54:21
Hi!

I got a problem with a trigger. I got a trigger that will be activated and a alarm will be turnd on. I want it to be turnd off after 1 minit, But I dont know how to do this.  ???

Help and suggestions are appreciated.  :D
Title: Re:Alarm off
Post by: macguba on 18 May 2003, 18:46:51
Use the forum search function .... I've answered this a couple of times ... the secret is to use a variable to control the trigger that has the alarm sounding.
Title: Re:Alarm off
Post by: Dandy on 18 May 2003, 21:06:42
The word "variable" is Something that I cant say that is my speciality. But i found something similar at the FAQ search. So maby I can get it to work with som smal changes.

I think will report back here after I tryed it.

Thanks for the hint.
Title: Re:Alarm off
Post by: Dandy on 19 May 2003, 00:11:39
The test mission I downloaded was a wery advanced script he hadd. The alarm turns on and off and on every 5 seconds if you are spotted.

And that is noth the way I want it, so I studie the work he hadd done, and manage to make it work with 3 triggers.

trigger 1 activation alarm=true
if spotted

trigger 2 activation alarm=false
if enemy dead in your area

trigger 3 condition alarm
sound: alarm
repetedly

And it works fine. No extra problems with playing, no "lags"
Title: Re:Alarm off
Post by: DarkTalent on 19 May 2003, 04:46:16
Any chance of getting a look at your source code for that, or the different set-up of the three triggers?
Title: Re:Alarm off
Post by: Dandy on 19 May 2003, 15:35:38
The name of the mission I downloaded si "DetectMostKnownEnemy.Abel" I found it whene I was searching the FAQ for alarm off. sample mission+scripts by Softegg.

Does that source help you?

And wath did you mean with:
"or the different set-up of the three triggers?"

Do you want me to write a text how I did the ting with the triggers?
Title: Re:Alarm off
Post by: LCD on 19 May 2003, 20:34:31
just put da next line in da triger on activision

[this] exec "stopalarm.sqs"

nd make script named stopalarm dat have

Code: [Select]
_trig = _this select 0

~60

_trig setpos [0,0,0]
exit

in it ;D

LCD OUT
Title: Re:Alarm off
Post by: Dandy on 20 May 2003, 00:12:17
LCD, the Stopalarm tingi locks cool but I got it to work with 3 triggers, okay. IÂ'm only waiting for DarkTalent to answer my question. But maby I shuld lock at it one day.
Title: Re:Alarm off
Post by: LCD on 20 May 2003, 03:22:58
its jusr resource managing  ;)

3 trigs absorbs more resources dan 1 trig nd script but if u r not gonna make v. big mision - itdoesnt realy matter ;) :D

waitin 2 c da mision in da beta testin forums ;)

LCD OUT
Title: Re:Alarm off
Post by: DarkTalent on 20 May 2003, 04:38:35
The name of the mission I downloaded si "DetectMostKnownEnemy.Abel" I found it whene I was searching the FAQ for alarm off. sample mission+scripts by Softegg.

Does that source help you?

Yes it did, ty. Neva mind tha other bit.
Title: Re:Alarm off
Post by: Dandy on 20 May 2003, 20:06:06
Maby you got some thing there :D

I think itÂ's time to start some thing new.

I only used scripting for Intro and outro.
maby I shuld try that script of yours.

beta testin forums  ??? hold on I havenÂ't sed any thing about a Beta testing mission, :-\ I still cant get the, "your killd briefing text to show up when you die. :(

And IÂ'm still working on the lip files :-\