Home   Help Search Login Register  

Author Topic: Help with a switch trigger and countSide  (Read 657 times)

0 Members and 1 Guest are viewing this topic.

Offline DOA

  • Members
  • *
  • ArmA 2 Rules - Nothing else comes close!
    • The Graveyard Shift
Help with a switch trigger and countSide
« on: 10 Sep 2003, 23:15:43 »
How do you configure a switch trigger with the countSide condition?

I have several patrols guarding Morton walking  through their cycle waypoints, careless. A larger group is around a fire and vehicles in Morton, careless. Black Ops sneak in and take out a few patrols quietly. The rest continue to walk their patrols careless and hang out around the fire. When we blow up the tanks (killing their crews) I would like everyone to switch to their seek and destroy waypoints as they now know they have uninvited guests. I am trying to accomplish this with the countSide command but I don;t know how to use it in this case.
Do I put it in the condition fiels and how do I configure the other settings in the trigger.
If some good soul could walk me through this trigger from top to bottom that would be fabulous.
Thanks for helping a llama out!
DOA
ArmA 2 - Nothing else comes close!
--
DOA

Komuna

  • Guest
Re:Help with a switch trigger and countSide
« Reply #1 on: 11 Sep 2003, 03:49:42 »
Simple... You must have a condition using countSide:

WEST countSide _Array > 0

The array can be obtained through the trigger it self : 'thislist'

But using countSide is the same as using Activated By : SIDE

Maybe you should use "_unit CountEnemy _Array" to have more realism...

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Help with a switch trigger and countSide
« Reply #2 on: 11 Sep 2003, 04:05:17 »
Trigger details:-

Axis A:    0        Axis B:   0
Type:   Switch
Condition:    the countside stuff

That's it.   Synchro the trigger with the cycle waypoints of the patrol groups.

However, if I were you I wouldn't use countside in this particular circumstance.    I'd do this.

Axis A and B:  covering the town
Activation box:     West detected by East
Type:  Switch
Condition:   this or (getdammage tank1 > 0.2) or (getdammage tank2 > 0.2)

That means that the trigger will be fired - putting the guard groups into seek and destroy or guard triggers with behaviour set to aware - either when the black ops are detected or when the tanks take real damage, which would have to be the satchels.    Technically you should make the trigger fire if a satchel is blown up in the trigger area, but this is more tricky and I can't remember how to do it offhand.

In any case, if all you're trying to do is count the units in a particular group - the tank crews - then just use the count command

count units grpTank == 0

Check the syntax in the online command ref.    Make sure you name the group.    With larger or multiple groups a trigger with this condition can in my experience take a few seconds to fire.
Plenty of reviewed ArmA missions for you to play

Offline DOA

  • Members
  • *
  • ArmA 2 Rules - Nothing else comes close!
    • The Graveyard Shift
Re:Help with a switch trigger and countSide
« Reply #3 on: 11 Sep 2003, 06:46:53 »
Thank you all very much.
Years ago in tech school I wanted to get into programming; but, I was seduced by the dark side and ended up a technical guy.  :)

If the Black Ops (Players) silently eliminate a single two man patrol on the way into the target will this count as being "detected by the east" (enemy camp) if we take them silently away from any others?

I have several two man patrols around Morton and a larger group with the vehicles and tents near the church. The team drops in to the northeast of town and while sneaking in we sometimes must clear our path by shooting a patrol or guard with a silenced weapon. (Out or sight of any others)
 
This is what I was trying to do with the countSide switch trigger 2-3 enemy quietly taken down on the way in would not reduce the number enough to activate the trigger; but, when the body count increases with the dead tank crews(BOOM!), the enemy numbers would be reduced enough to activate the trigger and have all enemy troops return to the explosion area set on high alert.

I was going to suggest we get together online and run through this one when it is finished, but after playing one of macgubas missions I would be ashamed for you guys to see it... LOL

Thanks again...DOA
ArmA 2 - Nothing else comes close!
--
DOA

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Help with a switch trigger and countSide
« Reply #4 on: 11 Sep 2003, 13:49:43 »
DOA the beta testing board is the place for fooling around with missions you are working on.      Many thanks for your kind compliment ..... my mission Lookout! would never have been any good without the help I got there.    So don't be embarrassed.    Only constructive criticism is allowed there.

Turning to the question, simply taking down a guard will not necessarily fire a "detected by" trigger.    In fact, if you are quick it's quite possible to drop two guards who have seen you and are unshouldering their weapons without the trigger being fired.     This is especially true at night and with silenced weapons.   If any other guards see you do it of course, then the trigger will be fired.    I suggest you set up a simple trial mission and play about a bit - you'll soon discover what does and does not set off the trigger.

However, it is perfectly legitimate game design to have the trigger fired after a certain number of guards are killed.    As I mentioned before, I wouldn't use countside to deal with the tank crews specifically, it's too blunt a command.    However you could use it to count the total number of enemy loons in the village and fire the trigger if the total drops below a certain number.

I suspect there are body discovery scripts in the Ed Depot, (I certainly saw some somewhere) but that's much more advanced stuff.
Plenty of reviewed ArmA missions for you to play

Offline DOA

  • Members
  • *
  • ArmA 2 Rules - Nothing else comes close!
    • The Graveyard Shift
Re:Help with a switch trigger and countSide
« Reply #5 on: 11 Sep 2003, 15:51:40 »
I am using the east detects west and (getgammage tank1) condition. Works like a charm. I plant the charges and then move to a location where I can observe a lot of the enemy. When the tank takes dammage they jump out their skins and respond the way they should. It looks really good from my covering sniper position he can see most all the enemy units respond at once when the tank taks dammage.

Before you guys helped me with thisswitch trigger, it was funny to see the guards and soldiers just keep ambling along, rifle on their back when the tanks (actually shilka - mission to take out air defense in prep for massive para drop) blow up. It looked like they had a really bad "It's not my job!" attitude. Thanks again...DOA

ArmA 2 - Nothing else comes close!
--
DOA

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Help with a switch trigger and countSide
« Reply #6 on: 11 Sep 2003, 21:00:00 »
so all ur probs r finished ?

if so click da solve thread botton ;)

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