Home   Help Search Login Register  

Author Topic: Enemy contact  (Read 860 times)

0 Members and 1 Guest are viewing this topic.

Ronald Speirs

  • Guest
Enemy contact
« on: 04 Oct 2003, 22:49:08 »
Basically, I want to know when a specific squad leader has made contact with the enemy, without being member of his squad myself.

The idea is that the squad leader reports this to me via the sidechat command.

I can not use the normal 'detect east' trigger because this trigger activates when any west unit has detected any east unit.

The command which I found on the forum and which comes closest to what I am searching for is:

"leader patrolgroup knowsabout _x > 0" count (units attackersgroup) > 1

but here I have to define attackersgroup and I want the squad leader to warn me when he makes contact with any enemy unit, not a specific group.

All help is appreciated.




Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Enemy contact
« Reply #1 on: 05 Oct 2003, 01:17:05 »
I think you're on the right lines.   Basically all you need to do is replace attackersgroup with an array of all the enemy units on the map.

Members of the leader's group reporting enemy that they have detected to him may make your trigger fire ... not sure if that will happen but if it does (and you care) I'm equally unsure what to do about it.   He said helpfully.  ::)
Plenty of reviewed ArmA missions for you to play

VUSN042

  • Guest
Re:Enemy contact
« Reply #2 on: 05 Oct 2003, 05:50:58 »
Check out one of the older artillery scripts, with included demo mission (ArtyObserver, I think it's called).  It contains a generic 'contact' script that you can use to do just what you want.


TrackenHit

  • Guest
Re:Enemy contact
« Reply #3 on: 06 Oct 2003, 19:59:54 »
BUMP

I want to keep an eye on this topic. I'm building an Air Cavarly simulator (artillery, field bases, helo-drop support, friendly infantry squads...its a secret ;) ).

This would be great for when I'm using dynamic waypoints to command squads around the field.  It would be more interesting when the reported in Enemy contact at whatever reference so I can use artillery and what not.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Enemy contact
« Reply #4 on: 06 Oct 2003, 21:32:13 »
TrackenHit, I'm sure you know this already, but just in case .... the mod Chain of Command might come in useful.   Also snYpir's SP/MP support pack, available in the Ed Depot.   No sense in reinventing the wheel.
Plenty of reviewed ArmA missions for you to play

Offline rhysduk

  • Former Staff
  • ****
Re:Enemy contact
« Reply #5 on: 06 Oct 2003, 23:21:57 »
Depends what you are using the wheel for doesnt it ;D
Reviewed Missions Board: Please Read the User's Guide before posting!

Pride and Joy 1 (HW100-T)

Unnamed

  • Guest
Re:Enemy contact
« Reply #6 on: 07 Oct 2003, 00:35:21 »
Ronald,

I think the bit your missing is the "List" command, List used with a detect trigger will give you an array of all the enemy that have been spotted by any of your groups.

And yes your correct, the knowsabout command in a foreach loop will then let you determine which group has spotted a particular enemy.

P.S If you want to report unkown units rather than just enemy, you will have to set your trigger to detect Anybody. Then remove any soldiers from the result that are on your side.

Ronald Speirs

  • Guest
Re:Enemy contact
« Reply #7 on: 11 Oct 2003, 11:59:12 »
Macguba and "unnamed" were right.  ;D

Patrolgroup = your squad of US soldiers

You can create a trigger called TriggerOne. Set the radius to for instance 500 and let it detect East units. Make it repeatedly to let the group report any new enemy contacts.

In the condition field put: "leader  patrolgroup knowsabout _x > 0" count (list TriggerOne) > 1
On Activation: leader patrolgroup sidechat "Patrolgroup Alpha to Base. Enemy contact !!"

This makes the patrolgroup report any enemy contact.

I knew I was close. ;D

Thanks to everybody responding to try to solve this issue.

Cheerio