Home   Help Search Login Register  

Author Topic: DO NOT SHOOT UNLESS DETECTED (AI)  (Read 1323 times)

0 Members and 2 Guests are viewing this topic.

Offline ZNorQ

  • Members
  • *
  • ehr... uhm... duh...
DO NOT SHOOT UNLESS DETECTED (AI)
« on: 20 Aug 2004, 16:13:28 »
I'm making a mission where the players (co-op) is supposed to cover an area. It will be pitch dark, and the AI will try to force their way through our barricade and reach a point behind us - in which case we'll loose.

Some of the AI units will head right on and try to blow us off the chart, while some shall use a more subtle tactic and try sneaking past us and reach their objective.

Here is where the problem is - I want a couple of spetz natz soldiers to do this! They are supposed to reach the point - without getting detected. This means I need to apply "NEVER FIRE" to them. But it'd be lame if they didn't return fire if we detected them...

I tried a trigger (EAST DETECTED BY WEST) and grouped that with the Spetz Natz, but I either did something wrong, or it didn't work...

I really hope there is a solution to it - and I prefer it simple if it's possible!

ZNorQ

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:DO NOT SHOOT UNLESS DETECTED (AI)
« Reply #1 on: 20 Aug 2004, 17:09:45 »
Have you tried a Waypoint with 'Hold Fire'.  They should then return fire when fired on.

Offline ZNorQ

  • Members
  • *
  • ehr... uhm... duh...
Re:DO NOT SHOOT UNLESS DETECTED (AI)
« Reply #2 on: 20 Aug 2004, 17:22:57 »
Hey and thx for the quick answer..

So "hold fire" means that he shoots just when fired upon?  Does that mean only when I shoot in his general direction? I mean, I don't wan't him to blast away if we're near him and shooting at other enemies...

Anyway, I'll give it a try!

Thx alot!

ZNorQ

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:DO NOT SHOOT UNLESS DETECTED (AI)
« Reply #3 on: 20 Aug 2004, 17:26:35 »
Play with it a bit.  I have had a group on Hold fire open fire when they got too close to the enemy, but usually they need to be fired on  Try it in a dummy mission just 2 groups moving towards each other in different modes.

Actually you would need three groups just to see if firing at others cause them open fire.  I don't know - play with it a bit.
« Last Edit: 20 Aug 2004, 17:28:20 by THobson »

Offline ZNorQ

  • Members
  • *
  • ehr... uhm... duh...
Re:DO NOT SHOOT UNLESS DETECTED (AI)
« Reply #4 on: 20 Aug 2004, 17:36:05 »
Yeah, I'll try that..

Thanks mate.

(I'll come back later with a Status report :D)

ZNorQ

Korax

  • Guest
Re:DO NOT SHOOT UNLESS DETECTED (AI)
« Reply #5 on: 21 Aug 2004, 08:20:36 »
try
This setcombatmode "green"
in their init field, it basically tells them to hold fire but defend if their in trouble

Offline Tyger

  • Former Staff
  • ****
  • I was at OFPEC when it still had dirt floors...
    • OFPEC
Re:DO NOT SHOOT UNLESS DETECTED (AI)
« Reply #6 on: 22 Aug 2004, 00:28:05 »
if any of those don't work, group a trigger to the spetz natz leader, and 'on activation' put:
 'Any group member' 'detected by' 'West', and have the spetz natz go stark mad.

aka plant satchels and hose down the area with mass volumes of fire while calling in an airstrike plus artillery salvos. ;D
kinda gory :gunman:
"People sleep soundly at night only because rough men stand ready to do violence on their behalf." - George Orwell

MSG Mike Everret - We Will Never Forget - '75-'08

Offline Tyger

  • Former Staff
  • ****
  • I was at OFPEC when it still had dirt floors...
    • OFPEC
Re:DO NOT SHOOT UNLESS DETECTED (AI)
« Reply #7 on: 23 Aug 2004, 17:41:31 »
oh, and i remembered another thing you can do.

spetz_one disableAI "AUTOTARGET" and spetz_one disableAI "TARGET"
that will not let them target anyone. Both automatically, or by their leader's orders.

Then, I think, you just put spetz_one enableAI "TARGET" etc. but I'm not sure. Check the ComRef.
"People sleep soundly at night only because rough men stand ready to do violence on their behalf." - George Orwell

MSG Mike Everret - We Will Never Forget - '75-'08

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:DO NOT SHOOT UNLESS DETECTED (AI)
« Reply #8 on: 23 Aug 2004, 17:44:48 »
theres no enableAI command... never use the disableAI as its a way of no comin back  :-X

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

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:DO NOT SHOOT UNLESS DETECTED (AI)
« Reply #9 on: 23 Aug 2004, 18:06:00 »
Start them off on setCombatMode green and setBehaviour stealth.    You could use a knowsAbout command in a trigger:  if West knowsAbout the Spetz Natz goes above a certain level they get appropriate setCombatMode and setBehaviour commands.

Lots of playtesting with those commands till you get what you want.  ;)
Plenty of reviewed ArmA missions for you to play

Offline ZNorQ

  • Members
  • *
  • ehr... uhm... duh...
Re:DO NOT SHOOT UNLESS DETECTED (AI)
« Reply #10 on: 25 Aug 2004, 16:17:47 »
Hehe, lots of cool tips here guys - thx! :D

I didn't know about the "hold fire" stuff earlier - but I've tried that one out and it seems to work out ok... The low's are that sometimes he won't fire at all, even when I'm spraying him with bullets (without hitting him ofcource) - he just lies there and stares at me with an pretty stupid look.. (Which usually ends with me getting pissed off and shooting him in the head - thus ending THAT test... :p)

Also tried out connecting a trigger to the enemy soldier(s) with the "any group members" detected by west... Don't get it to work, but while I'm writing this I'm remembering that I might have to use it as an area trigger as well? I'll try it out...

Anyways, thx for good tips folks! (Gotta love this forum :D)

ZNorQ

PS! Sorry for the late reply, been busy programming ofp... 2 Sept is our date for our yearly flashpoint lan game... 21 players in coop. Even printed out the sarugao map (2m x 2m in size) where we'll have our briefing sessions for each missions...! (Are we going TOO far???  ;))

PS2! I have an urgent matter on this thread http://www.ofpec.com/yabbse/index.php?board=7;action=display;threadid=18849, does anyone of you know the solution to this?
« Last Edit: 25 Aug 2004, 16:20:59 by ZNorQ »

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:DO NOT SHOOT UNLESS DETECTED (AI)
« Reply #11 on: 25 Aug 2004, 17:26:44 »
If he doesn't shoot back try giving him higher skill.
Plenty of reviewed ArmA missions for you to play

Offline ZNorQ

  • Members
  • *
  • ehr... uhm... duh...
Re:DO NOT SHOOT UNLESS DETECTED (AI)
« Reply #12 on: 25 Aug 2004, 19:05:13 »
Hehe, roger that, but I must say it's pretty strange that a Lieutenant with max skills doesn't cut it at a 2m. distance... Seems I'll just have to promote the ess'o bee.

(BTW, He do shoot most of the time, but it would be typical that when it really counts - he'll turn into a dang pacifist...)

ZNorQ

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:DO NOT SHOOT UNLESS DETECTED (AI)
« Reply #13 on: 25 Aug 2004, 19:17:29 »
If you can detect when you want him to start shooting can you use a trigger or a script to:
setCombatmode"RED" ?

I see the advice above to setCombatmode"GREEN" that will put him on 'Hold Fire'

You might want to try setCombatmode"WHITE" which is 'Hold Fire, Engage at will'

That might make him a bit more willing to have a go.

Offline ZNorQ

  • Members
  • *
  • ehr... uhm... duh...
Re:DO NOT SHOOT UNLESS DETECTED (AI)
« Reply #14 on: 26 Aug 2004, 11:22:31 »
Well, I thougth the difference between "HOLD FIRE" and "HOLD FIRE, ENGAGE AT WILL" was that the first one is holding fire unless he's fired upon - but will still forced to continue his waypoint path, while the "engage at will" will make him start moving tactically against enemies till they are destroyed (and then continue to his next waypoint)..? Alas he WILL (or atleast should) fire back if enganged by his enemies in both cases.

ZNorQ