Home   Help Search Login Register  

Author Topic: AI with binocular  (Read 1399 times)

0 Members and 1 Guest are viewing this topic.

Offline Kneehi

  • Members
  • *
AI with binocular
« on: 16 Sep 2009, 02:12:01 »
Please, can anyone tell me how to make a unit to use his binoculars while crouching?
I know the  Playername Playmove "BinocCrouchToCrouch", but he just don't keep that position...
why?
:)
War ain't fair.

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re: AI with binocular
« Reply #1 on: 16 Sep 2009, 08:52:14 »
Try a switchmove instead.

Offline Kneehi

  • Members
  • *
Re: AI with binocular
« Reply #2 on: 17 Sep 2009, 01:41:34 »
Well, i already tried that, but the unit(aI) get to this position than go back to normal standing.
War ain't fair.

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re: AI with binocular
« Reply #3 on: 17 Sep 2009, 10:26:57 »
Getting AI to perform animations can be tricky at the best of times, especially crouching, and may involve the use of "brute force" techniques such as disabling AI (move and/or target) and setUnitPos.

In OFP disabling AI is non-reversible, so if the characters need to act normally after completing the animation, you can use duplicate characters - one to do the animation and the other to continue the cutscene normally.

If this is not for a cutscene and instead for in-mission action, I'm not sure what else to suggest.

Offline Kneehi

  • Members
  • *
Re: AI with binocular
« Reply #4 on: 18 Sep 2009, 23:55:48 »
Well, thanks...  :confused:
War ain't fair.