Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Trigger activate every 60 seconds

  1. #1

    Trigger activate every 60 seconds

    ok please help me out guys...

    I would just like to have a trigger that activates every 60 seconds.. I have tried everything, maybe I'm just stupid but please.. help me out

    Thanks in advance...

    Nicolai
    Work in Progress

  2. #2
    Master Gunnery Sergeant Imutep's Avatar
    Join Date
    Feb 7 2006
    Location
    Where am i ?
    Posts
    1,359
    Quick answer. Use more than 1 trigger. 1st 60sec, 2nd 120 sec, 3rd 180 sec, and so on. Or you try a script for this.

    Assault Mission Studio - German Mission Editing && Scripting Website

  3. #3
    I seem to remember that triggers by default check their own status once per second. That sounds a little low to me, so that's probably not true, but let's say it is (it's bound to be some value).

    I think that instead of directly using a trigger, that maybe you should loop a script that checks the status of a trigger each 60 seconds, and controls the activity from there.

    So you have your trigger set up, named, and you have a script that does (something like):
    Code:
    while {true} do
    {
    if (triggerName) then
       {
          ...code...
       };
    sleep 60;
    };
    Last edited by DMarkwick; Feb 21 2010 at 18:59.
    Fire And Smoke for ArmA2: JTD_FireAndSmoke v0.2

    For better future effects addons, please vote for this ticket.

  4. #4
    Sergeant
    Join Date
    Dec 21 2009
    Location
    Holland
    Posts
    103
    Author of the Thread
    I will try this DMarkwick, thanks

    Question: The script should be executed by something, the trigger itself?
    Last edited by Nicolai; Feb 21 2010 at 19:13.

  5. #5
    Quote Originally Posted by Nicolai View Post
    Question: The script should be executed by something, the trigger itself?
    It can be activated by anything, place the exeVM call into any object's init field, or place the call in the mission's init.sqf file. If the mission doesn't have one, make one

  6. #6
    If you don't want to script a trigger then an easy way is as follows.

    In the init box of a game logic or unit setup up a variable ie var1=true

    Then set your trigger conditions, anyone present not present ect and set all timers to 60 and make sure you select repeating

    Then put the following code in the correct boxes

    Cond this and var1
    On Act var1=false
    On Dea var1=true

    Con can also be just var1 if you don't need all the triggers settings.
    Last edited by F2k Sel; Jun 4 2010 at 11:12.

  7. #7
    Sergeant
    Join Date
    Dec 21 2009
    Location
    Holland
    Posts
    103
    Author of the Thread
    that is simply brilliant, can't understand why I can't come up with something simple like that. Thanks all for your help

    Nicolai

  8. #8
    condition:
    Code:
    time % 60 == 0

  9. #9
    Sergeant
    Join Date
    Dec 21 2009
    Location
    Holland
    Posts
    103
    Author of the Thread
    can a trigger only be activated for a couple of times? It works perfectly, for about 6 times, after then, the trigger is no longer activated. Suggestions?

    Thanks

    Nicolai

  10. #10
    Do tell us how you've set up the trigger.

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •