Home   Help Search Login Register  

Author Topic: Running to waypoint then placing enplacements  (Read 871 times)

0 Members and 1 Guest are viewing this topic.

Offline pexmo

  • Members
  • *
  • I'm a llama!
Running to waypoint then placing enplacements
« on: 12 Aug 2006, 19:39:51 »
Ok this is what i want to do:

1: I have a engineer team with 4 members.

2: On a set trigger they will move up to a set waypoint.

3: when they reach the waypoint i want vehicle (a mortar i have placed outside of the battle area with the name enplacement1) to be moved to their location.

4: I then want the engineers to man the placed enplacement.

5: Then when i trigger the next trigger the engineers leave the enplacement, it is moved back to the starting pos, and then continues to their next waypoint.

6: start over again from the top.

How do i do this?

The matter of them packing up and moving further etc isnt neccessary i can use a different engineer team to move up to the second pos.

Its for a assault scenario when you advance ahead of your support teams and they move up after you and give support.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re: Running to waypoint then placing enplacements
« Reply #1 on: 12 Aug 2006, 19:51:20 »
3.  emplacement1 setPos getPos object 1234

where object 1234 is a convenient bush.

Alternatively, use

getPos leader grp1

You might have to add an offset if the leader gets trapped in the emplacement.

Same idea for moving the emplacement each time.   The code probably goes in the trigger.
Plenty of reviewed ArmA missions for you to play

Offline pexmo

  • Members
  • *
  • I'm a llama!
Re: Running to waypoint then placing enplacements
« Reply #2 on: 13 Aug 2006, 01:03:06 »
Worked perfectly, thx.