OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: General Goober on 04 Feb 2003, 09:07:54

Title: Timer for Alarms
Post by: General Goober on 04 Feb 2003, 09:07:54
Can anyone tell me how I can properly set the script to raise the alarm for 5 minutes.  I have got a trigger to go off when enemy present however it will not switch off.
Title: Re:Timer for Alarms
Post by: macguba on 04 Feb 2003, 11:04:04
The trigger which has the alarm as an effect should be set to repeatedly and it should be controlled by a variable e.g.

condition:   alarmOn

you can then control the alarm by controlling the variable:   have it set to true by one trigger when the intruders are detected, and have another trigger set it to false 5 minutes later.
Title: Re:Timer for Alarms
Post by: General Goober on 04 Feb 2003, 11:16:19
Thanks very much.  I will give that a try.
Title: Re:Timer for Alarms
Post by: General Goober on 05 Feb 2003, 00:19:04
Still cannot get it to work.  Going to try and find a tutorial. Any recommendations?
Title: Re:Timer for Alarms
Post by: macguba on 05 Feb 2003, 01:18:55
its too late tonight (midnight 16 GMT) but I'll post you an example mission tomorrow.   its dead easy really.   sorry I didn't explain myself better.
Title: Re:Timer for Alarms
Post by: General Goober on 05 Feb 2003, 11:52:56
Thanks mate!!
Title: Re:Timer for Alarms
Post by: macguba on 05 Feb 2003, 15:22:20
hope this helps.   Kolgujev.