Home   Help Search Login Register  

Author Topic: Helicopter - stay on task  (Read 2136 times)

0 Members and 1 Guest are viewing this topic.

Offline mcnorth

  • Members
  • *
Helicopter - stay on task
« on: 08 Apr 2007, 21:52:09 »
Has anybody found a way to keep a helicopter on it's assigned task when it knows about enemy units? To be more specific I'm working on a helicopter extraction that works flawlessly except when the helicopter sees enemy units. Then it deviates from it's course and won't land. I've tried "disAbleAI", "allowFleeing", "setCaptive" (last resort) and "setSkill".

Any new ideas are appreciated.

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: Helicopter - stay on task
« Reply #1 on: 08 Apr 2007, 22:35:29 »
Try setting the chopper's behaviour to "careless"
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline satexas69

  • Members
  • *
Re: Helicopter - stay on task
« Reply #2 on: 09 Apr 2007, 06:35:57 »
And if other choppers or flying stuff is in the area, change the "setheight" to a "probably not used" safe level value... I had to do that on a mission with timed flying through traffic.
« Last Edit: 09 Apr 2007, 08:51:35 by bedges »

Offline mcnorth

  • Members
  • *
Re: Helicopter - stay on task
« Reply #3 on: 09 Apr 2007, 22:59:21 »
Thanks guys. Unfortunately it's still a no go.

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re: Helicopter - stay on task
« Reply #4 on: 10 Apr 2007, 17:19:44 »
Is the helicopter movement scripted or done with waypoints?
urp!

Offline mcnorth

  • Members
  • *
Re: Helicopter - stay on task
« Reply #5 on: 11 Apr 2007, 01:03:52 »
Is the helicopter movement scripted or done with waypoints?
It's scripted.

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re: Helicopter - stay on task
« Reply #6 on: 11 Apr 2007, 01:57:05 »
Setting behaviour to careless should work. You might have to repeatedly send the helicopter a move command. Try checking out Mandoble's helicopter suite in the OFP forum under Scripts Beta testing here.

edit: oops. what should work is setBehaviour "CARELESS" and setCombatMode "BLUE".
urp!

Offline mcnorth

  • Members
  • *
Re: Helicopter - stay on task
« Reply #7 on: 11 Apr 2007, 07:18:50 »
Thanks Mr Peanut. That looks promising so I saved a copy to delve into when I can commit more time to comprehending it.

Where 'setBehaviour" is concerned I've tried both "careless" and "safe". I've also tried setCombatMode "Blue", taking away ammo, taking away gunners and just everything else I could think of. But I hadn't thought of constantly re-sending the move command.

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re: Helicopter - stay on task
« Reply #8 on: 11 Apr 2007, 14:57:10 »
Just to make sure, I meant you had to set both the behaviour and set the combat mode.

Not that I know anything about FSM, but might this have something to do with problems of overriding the default FSM?

edit: Are you using the moveTo command?
« Last Edit: 11 Apr 2007, 15:24:36 by Mr.Peanut »
urp!