Home   Help Search Login Register  

Author Topic: repeating trigger  (Read 505 times)

0 Members and 1 Guest are viewing this topic.

Offline Killzone

  • Members
  • *
  • War is the true Enemy
repeating trigger
« on: 17 Sep 2003, 15:47:51 »
Hi all

Is there a way to get a trigger to activate on its own every so many seconds or minutes, without having to enter the trigger zone in order to do it.


Thanks in advance ;D

"Everyone dies so deal with it and move on"

                                                      ME

Knut Erik

  • Guest
Re:repeating trigger
« Reply #1 on: 17 Sep 2003, 16:10:47 »
A script would to the trick ...

Exsample script :

#loop
DoSomethingFancy
~TheNumberOfSecondsYouWant
Goto "Loop"

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:repeating trigger
« Reply #2 on: 17 Sep 2003, 16:38:10 »
If you're new to scripts:

Check out SnYpir's introduction to code snippets and if you feel to advance further, Gustavssons scripting tute.

:beat: *Gets Shot* :beat:

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:repeating trigger
« Reply #3 on: 17 Sep 2003, 17:38:07 »
Or if you're sticking to triggers for the time being you could make one trigger more and set both to something like this:

50x50
activation repeatedly
condition: this or activate
on activation: hint "it works"; activate = false
on deactivation: trig2 = true

0x0
activation repeatedly
timeout min: 20  max: 60  mid: 40
condition: trig2
on activation: activate = true; trig2 = false


or something from that general direction..  ::) ;D
Not all is lost.

GaryP

  • Guest
Re:repeating trigger
« Reply #4 on: 18 Sep 2003, 00:44:56 »
When would you call the loop thing?  In the init file?

Wouldn't it suck up system time?

How could you have more then one?  It would never end and go to the second one.

Or like this in the init file?:

exec "WaitOne.sqs"
exec "WaitTwo.sqs"

I know as a programmer that loops are bad.  It the game different?  How does it handle them?






GrimMonkey

  • Guest
Re:repeating trigger
« Reply #5 on: 18 Sep 2003, 00:45:40 »
Sorry, this is a question.

How can I make it so that soldiers stay crouched and prone, I don't want to use behaviour commands and when I use: this switchMove "crouch", they only stay for one second, much like Officers using Binoculars?

Help please.


Beware the GrimMonkey

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:repeating trigger
« Reply #6 on: 18 Sep 2003, 01:14:25 »
@ Gary

da loop shud b called in script (go 2 da ed - it got great TUTs)

it wud suck sys resources - but we gotta use em somtimes ;D

2 end loop nd continue use da goto command ;)

hop i answered ur Qs (unless ma "good" eng got me understandin u wrong ;))

@ grim

use new threads 4 new Qs  ;) - ill answer u on oder thread

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta