Home   Help Search Login Register  

Author Topic: Dotarget Group  (Read 780 times)

0 Members and 1 Guest are viewing this topic.

Offline Killzone

  • Members
  • *
  • War is the true Enemy
Dotarget Group
« on: 21 Jul 2005, 04:33:16 »
Hello,


Is it possible to have one group target another group?

I tried

Grp1 do move getpos Grp2

Grp 1 dotarget grp2

Grp1 dofire grp2

But it wont work.

I am just trying to an enemy group from across the island to hunt my group.

Thanks in advance for the help  ;D

"Everyone dies so deal with it and move on"

                                                      ME

Pravit

  • Guest
Re:Dotarget Group
« Reply #1 on: 21 Jul 2005, 04:43:03 »
Try "grp1 move getpos leader grp2"
You may want to run a loop that does this every so often to keep the AI's info about you fresh(otherwise, they'll just go to the position you were at before). You may also want to use the "reveal" command so they'll be able to target you when they get closer.

qqqqqq

  • Guest
Re:Dotarget Group
« Reply #2 on: 21 Jul 2005, 10:46:23 »
Most commands in OFP take specific arguments.  Some work on groups, some on loons and so on.   Some can take either.  In addition there are other commands which take a loon as argument but affect the whole group.  

There's no point in attempting to use a command unless you fully understand what arguments it requires.    The comref is very helpful on this point.    Simply substituting a group for a loon and hoping for the best does not work often enough for it to be a worthwhile technique.

Offline 456820

  • Contributing Member
  • **
Re:Dotarget Group
« Reply #3 on: 21 Jul 2005, 12:35:32 »
how about
{_x dofire grp2} foreach units grp2
you may also need a do trget command on the group just change the the dofir to dotarget

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re:Dotarget Group
« Reply #4 on: 21 Jul 2005, 12:45:26 »
grp2 fires on itself. nice one  ::)

Offline 456820

  • Contributing Member
  • **
Re:Dotarget Group
« Reply #5 on: 21 Jul 2005, 13:09:58 »
oh yeah sorry grp1 at the end wich will make grp1 fire at grp2

qqqqqq

  • Guest
Re:Dotarget Group
« Reply #6 on: 21 Jul 2005, 13:49:00 »
*sigh* Sometimes I wonder why I bother.

I write
Quote
Simply substituting a group for a loon and hoping for the best does not work

Yet still 456820 posts
Quote
{_x dofire grp2}

In spite of
Quote
doFire target

Operand types:
target: Object


I know it's no crime to post an answer with a mistake but this is more than laziness and thoughtlessness:  it is negligance.   It makes no more sense than

"marker1" setmarkercolor grp2

« Last Edit: 21 Jul 2005, 13:57:18 by qqqqqq »

Offline Killzone

  • Members
  • *
  • War is the true Enemy
Re:Dotarget Group
« Reply #7 on: 21 Jul 2005, 15:09:10 »
Although I always appreciate the help,  Pravit's suggestion was exactly what I was looking for.
One group now hunts another
"Everyone dies so deal with it and move on"

                                                      ME

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re:Dotarget Group
« Reply #8 on: 21 Jul 2005, 15:15:48 »
to get back to the original question, see attached.