Home   Help Search Login Register  

Author Topic: disableAI "MOVE" / general AI question  (Read 550 times)

0 Members and 1 Guest are viewing this topic.

Offline Fire-Fox

  • Members
  • *
  • Violence is just a friend walking on the right way
disableAI "MOVE" / general AI question
« on: 29 Nov 2004, 17:52:55 »
Hi!

I have two questios concerning the AI's movement behaviour.


1) Is it possible to remove the effects off the disableAI command, i.e. with something like enableAI "MOVE"?

2) Can I force AI soldiers to stay within the formation but fire at enemies when in sight? If you should ask, I'm speaking of AI squads with no player as leader or member.


Thanks in advance! :)

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:disableAI "MOVE" / general AI question
« Reply #1 on: 29 Nov 2004, 18:09:42 »
1) No. You can replace the disabled dude I guess.
2) Disengage?

:beat: *Gets Shot* :beat:

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re:disableAI "MOVE" / general AI question
« Reply #2 on: 29 Nov 2004, 19:05:34 »
God, it was for AI led squads ::)

2) Try setting them to combatMode "yellow"...
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline Fire-Fox

  • Members
  • *
  • Violence is just a friend walking on the right way
Re:disableAI "MOVE" / general AI question
« Reply #3 on: 29 Nov 2004, 19:12:40 »
Quote
1) No. You can replace the disabled dude I guess.
2) Disengage?

1) It was worth a try! ;D Replacing won't be looking too nice in the game when it's done several hundred times and during combat (I'm not talking about cutscenes).
2) You mean setting the combatmode on "GREEN" or "WHITE"? This doesn't work either because it makes the squad wait too long. When it finally opens fire, the first man has in most cases already been hit. :-\

When the squad detects enemies, I want the whole squad to move to positions from where they can open fire, but everyone should stay at his individual position.

dostop this also doesn't work because the AI squad leader will still issue engage orders, and squad members' reaction will be advancing towards the target although they are in range and the line of sight to the target is clear. :-\ (AND I GODDAMN TOLD THEM THEY ARE TO >>>STOP<<< ;) )


Quote
2) Try setting them to combatMode "yellow"...

No, although I expected this to be the key, too. Weird AI.  :-\

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:disableAI "MOVE" / general AI question
« Reply #4 on: 29 Nov 2004, 22:38:14 »
Quote
2) Can I force AI soldiers to stay within the formation but fire at enemies when in sight? If you should ask, I'm speaking of AI squads with no player as leader or member.
unit DisableAI "target"

That should stop the unit from doing things like flanking, advancing automatically, etc. Also, try telling them to "engage", NOT "engage at will" (whichever the corresponding "combatmode" that is).
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!

Offline Fire-Fox

  • Members
  • *
  • Violence is just a friend walking on the right way
Re:disableAI "MOVE" / general AI question
« Reply #5 on: 29 Nov 2004, 23:16:14 »
disableAI "TARGET" works- Barron, you are the best. I suspect you have this Matrix view, like "I only watch the world in code".  8)  ;) There's no other way that you know all this seemingly off hand.

Well, thanks again!!! :cheers: Must be the at least the 3rd time within a month that you solved my little problems.