Home   Help Search Login Register  

Author Topic: Make trigger run repeatedly  (Read 2181 times)

0 Members and 1 Guest are viewing this topic.

Offline Pr0ph3t

  • Members
  • *
Make trigger run repeatedly
« on: 24 Oct 2009, 16:54:59 »
Hey guys, almost done my first mission..

So now at this point I want an artillery unit to just fire every 10 seconds (effect).

So I created 2 units, in their inits I put moveincargo and moveingunner setcombatmode red
I haven't put a marker yet but it doesn't matte I just want to get this running first..
Then I make a trigger that says:

Activation: anybody
Run repeatedly
Timeout 5 secs
Condition: artyfire1
OnActiv : arty1 fire "D30" (works I've tried it on its own)
OnDeact : artyfire=true

So it fires once and that's it.. I can't remember how to finish the loop I used to do this all the time..
Anyone remember? I can't find any of my old posts where we had discussed this and I've looked all over the place

Offline i0n0s

  • Moderator
  • *****
Re: Make trigger run repeatedly
« Reply #1 on: 24 Oct 2009, 18:41:46 »
In OnAct: artyfire1 = false;
In OnDea: artyfire1 = true;

Offline Pr0ph3t

  • Members
  • *
Re: Make trigger run repeatedly
« Reply #2 on: 24 Oct 2009, 18:54:31 »
 :D thank you I figured it was something like that