Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
starstreams

Alarm trigger will not stop

Recommended Posts

I’ve been searching the forums and other sites as well as google for a solution, but have come up empty on this. I made a trigger:

Activation = OPFOR (East) set to Once, no Repeatedly

Trigger = Present

I tried Time out, and Countdown

Type = None

Effects = Trigger (Alarm)

This trigger works fine, in that it goes off when the enemy crosses over the radius axis I’ve set, however, the alarm will not stop. I thought if I set the Max to something like 30 seconds, it would stop the alarm, but it did not. Can this be done without advanced scripting of text file? I’m not experienced in that yet. I also tried to set another trigger to Not Present, with the On Activation of the second trigger pointing to the name of the Condition of the first trigger. Is this simpler than I'm making it?

Thanks

Share this post


Link to post
Share on other sites

The timeout/countdown add a delay before the trigger will be activated, once the conditions for the trigger become true. You use the min, mid, and max for that (which lets you specify a random amount of time). The difference is 'countdown' will activate the trigger X seconds after the conditions are met; 'timeout' requires the conditions to be continuously met for X seconds before it'll activate.

I'm not actually sure how to do this but I'll try to remember to look into it tonight - I have an alarm triggering in my mission that I'd like to stop at some point as well, but it's been very low priority to work it out.

I think you might need to delete the trigger. At least that's what I'm planning on doing. If you want to play with that, perhaps create another trigger setup to activate in response to whatever event you want to cause the alarm to stop. If you just want it time-based, you could maybe copy the same trigger and just add a 30 second countdown (by setting min, mid, and max to 30). Make sure your trigger with the alarm attached is named, and then in the 'on act' field for your new trigger, add:

deleteVehicle triggername

where triggername is whatever you named your alarm trigger. Maybe "alarm" would be a good name?

Don't know if this is the best/correct solution though.

Share this post


Link to post
Share on other sites

Hi,

I was looking for a solution for exactly the same problem and it is with deleteVehicle that it works. Here is my solution :

Create a trigger
Name it (triggerAlarm [i]in my case[/i])
Activation : OPFOR
Once
Timeout : Min : 20 Mid 20 Max 20 ([i]in my case[/i])
Condition : this
On Activation :null = [] spawn {CutText [localize "Alert !!! Alert !!!","Plain",3];sleep 10;deleteVehicle triggerAlarm;}

This definitely worked for me

@ some kind of guy

You are right with the deleteVehicle Triggername

Thanks

Share this post


Link to post
Share on other sites

Wow, Thanks Tom&Jerry! That worked beautifully!

I noticed that I could also increase the time the alarm stayed on by just changing the sleep 10, to something higher like 100. Very cool! :sun:

I don’t know how you guys know how to do this scripting stuff, I’ve been looking into it, but it’s so confusing. At this point, I just keep a bunch of custom text files for specific things and copy and paste this stuff when I need it. This was really a huge help. And thank you also, "some kind of guy"! I appreciate you taking the interest and the time to respond. it's guys like you that make this game great for everyone!

Share this post


Link to post
Share on other sites

Glad you got it sorted, and thanks Tom&Jerry for posting the tested working solution. I figured spawn would be cleaner than using another trigger but I'd forgotten the syntax (not to mention the function name :D).

Share this post


Link to post
Share on other sites
Sign in to follow this  

×