OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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
-
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.
-
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.
-
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"
-
Any chance of getting a look at your source code for that, or the different set-up of the three triggers?
-
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?
-
just put da next line in da triger on activision
[this] exec "stopalarm.sqs"
nd make script named stopalarm dat have
_trig = _this select 0
~60
_trig setpos [0,0,0]
exit
in it ;D
LCD OUT
-
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.
-
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
-
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.
-
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 :-\