Home   Help Search Login Register  

Author Topic: Another M2 question  (Read 563 times)

0 Members and 1 Guest are viewing this topic.

Offline Captain Crunch

  • Members
  • *
Another M2 question
« on: 22 Jan 2004, 23:06:57 »
Is it possible to prevent an M2 gunner to turn in all direction?

for example, I have build a little wall with a small opening and positioned an M2 behind it. My problem is if I come from his back, he turns and shoots. What would actually be impossible because of the wall.

   Is possible to make him face only a few degrees in front?

thanks in advace
Back to the forest!

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Another M2 question
« Reply #1 on: 22 Jan 2004, 23:14:04 »
I suppose you could tell him to watch only a certain direction, but not sure if it works......never tried it.

Something like:

unit doWatch getmarkerposition  "markername"

Try that in his init field.
You would need to place a marker in the direction you want him to watch.  And give it a name.

Let me know if it works.
« Last Edit: 22 Jan 2004, 23:14:55 by Planck »
I know a little about a lot, and a lot about a little.

Offline Captain Crunch

  • Members
  • *
Re:Another M2 question
« Reply #2 on: 22 Jan 2004, 23:38:06 »
Yes it does but he watches only straight to the marker.

It would be better if he would move a little, lets say around 25 degrees each side of the marker. Because as it is now, he will only fire if I put myself straight in front of him.

  I tried enlarging the marker size but it doesn't work.

More ideas? We're getting there.

Back to the forest!

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Another M2 question
« Reply #3 on: 23 Jan 2004, 00:08:34 »
The problem with doWatch is that the condition is satisfied as long as the loon can see in the given direction:   it's ok if it's out of the corner of his eye rather than straight ahead.

To make him move as if scanning you'll need a bunch of gamelogics in appropriate places and a wee script making him look them in turn.   You could do it in order or some kind of random thing.
Plenty of reviewed ArmA missions for you to play

DBR_ONIX

  • Guest
Re:Another M2 question
« Reply #4 on: 23 Jan 2004, 23:00:30 »
If nothing else works.. You could make a M2 that could only turn 25*..
A last resort, though..
- Ben

Offline Captain Crunch

  • Members
  • *
Re:Another M2 question
« Reply #5 on: 24 Jan 2004, 04:00:48 »
How would I make an M2 that can only turn 25°?

   Would I have to work the Config of the .pbo??
Back to the forest!