Home   Help Search Login Register  

Author Topic: Triggers and alot of other stuff i dont understand  (Read 567 times)

0 Members and 1 Guest are viewing this topic.

Offline Insanoblan

  • Members
  • *
  • Look! Im a chicken Marge!
okay. So i need help with this one thing. I have a bmp named "BMP1" and I need to figure out how to make it so that when it is destroyed, another trigger is made to make an extraction point available. Please provide a descriptive answer, as i am too stupid to understand anything  ???

Insanoblan Out
Hey kid, wanna see a dead body!?

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Triggers and alot of other stuff i dont understand
« Reply #1 on: 02 Mar 2003, 19:32:04 »
ok, m8. HereƂ's whatcha do:

1. Create a trigger
2. In da condition field u put

!(alive BMP1)

3. In da on activation field u put

TriggerActivater=true

3.1 TriggerActivater=the keyword in your other trigger.

Hope this helps, m8 :-*

Offline Wolfrug

  • Addons Depot
  • Former Staff
  • ****
  • Official OFPEC Old Timer
Re:Triggers and alot of other stuff i dont understand
« Reply #2 on: 02 Mar 2003, 23:14:34 »
Armstrong is correct, but let me explain what happens here:

the condition field is, if you didn't know, all the things that NEED to happen before the things in the on Activation field CAN happen. Alright, so, you put !(alive bmp1) in the condition field of one trigger. This trigger will shoot once bmp1 is destroyed, although with vehicles I'd almost suggest the !(canMove bmp1) or !(canFire bmp1), since they can often get disabled without actually being "destroyed" as per OFP's requirements. The ! by the way is just another way of saying not, so !(alive bmp1) means not(alive bmp1). And yes, you can use NOT too.

*ahem*

Now, the second part. The variable armstrong uses there is a fine tool and the most common one too. By putting for instance: bmpDestroyed=true in the on activation field makes the variable bmpDestroyed true. And by then creating another trigger with the condition, as armstrong says, bmpDestroyed, will activate that trigger as soon as the bmp is killed.

Better hurry this up now. Ehm, you want to create an extraction zone? Maybe a small area, say 100 x 100? Well, create your trigger, make it activated by: West (or east or resistance or whatever you are). Then, in the condition field write: this AND bmpDestroyed

why? Well, if you walk into the radius without the variable being true, nothing happens, since you need not only the presence of west ("this", referring to the Activated By function) but ALSO that the bmp is destroyed. You rarely need to define variables beforehand, and all which are mentioned somewhere (but not yet defined, as per variableName=true or variableName=false somewhere yet) are considered false.

And then...well, make it type End #1 if you want the mission to end, otherwise do whatever you want with the on Activation field.

Argh, sorry it's late and I'm might blather a bit. Hopefully you've got some help outta this, and if there's something that needs clarification (which I'm sure there is... :-\ ) just ask away.

;D Wolfrug out. ;D
 
"When 900 years YOU reach, look as good you will not!"