Home   Help Search Login Register  

Author Topic: LIST TRIGGER COMMAND  (Read 551 times)

0 Members and 1 Guest are viewing this topic.

polvy

  • Guest
LIST TRIGGER COMMAND
« on: 10 Jan 2004, 15:53:50 »
I need an example of how to make a trigger fire when any unit or group of units that I specify cross into it. I found the "List Trigger" command in the ComRef but don't know how to make it work.

Example of what I'm trying to tell the Trigger:

Fire trigger when any one of the following units p1,p2,p3 cross into it.

I can't use the "group" line method but I won't go into that. I need to know how to do it using only script text. Thanks in advance.

~Polvy

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:LIST TRIGGER COMMAND
« Reply #1 on: 10 Jan 2004, 16:16:09 »
group the trigger with p1, p2 and p3

:beat: *Gets Shot* :beat:

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re:LIST TRIGGER COMMAND
« Reply #2 on: 10 Jan 2004, 16:17:09 »
Set the trigger to activate by the side of the units you want it to be set off...
Condition: p1 in thisList || p2 in thisList || p3 in thisList

And in the activation field you can put something like hint "just checking..." to test that it works...

Oh, and that || means the same as or

When a group is in question you can use the grouping the trigger to the group method... It's the easiest...
« Last Edit: 10 Jan 2004, 16:18:36 by HateR_Kint »
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

polvy

  • Guest
Re:LIST TRIGGER COMMAND
« Reply #3 on: 11 Jan 2004, 07:42:16 »
Thank you very much for the reply. It works very well. I do have one other question however. What if I want to make the trigger the same way but use vehicles with names to trip them. Do I just substitute crew names for vehicle names? I tryed it and it didn't seem to work. thx.

~Polvy

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re:LIST TRIGGER COMMAND
« Reply #4 on: 11 Jan 2004, 09:36:28 »
You just give the vehicle a name and that should do it...
Or group the trigger with the vehicle...

The same 'rules' apply...

In your example using the crew names you need to use the vehicle command, as such:

Condition: vehicle crewname in thisList

Now the trigger will trig if the crewname is a driver, gunner or commander of the vehicle...
(If he was as a cargo you'd need to use the grouping thing (Thanks LCD ;D))

It trigs the trigger now if the crewname is in his vehicle or not...
« Last Edit: 11 Jan 2004, 09:45:44 by HateR_Kint »
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

polvy

  • Guest
Re:LIST TRIGGER COMMAND
« Reply #5 on: 11 Jan 2004, 16:30:29 »
Works like a champ!  ;D Thank you.

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:LIST TRIGGER COMMAND
« Reply #6 on: 11 Jan 2004, 20:39:55 »
Quote
(thanks LCD)

dats y were here ;)

@ polvy - just use da solve botton if u aint got no mo probs ;) - it shud b up dere somwere

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