Home   Help Search Login Register  

Author Topic: Return to formation  (Read 1634 times)

0 Members and 1 Guest are viewing this topic.

Offline greg147

  • Contributing Member
  • **
    • Royal Air Assault Battalion
Return to formation
« on: 27 Jul 2005, 16:11:05 »
Hi all,

I've got a mission where at one stage all the team members in a group move to different areas using the 'domove' command. Whilst there, they have 'dostop' on them to keep them in the position.
My question is, how do I get the units to return to formation with their leader after a trigger is activated?

Thanks  ;)
Royal Air Assault Battalion - [L/Cpl] Greg
RAAB

Offline 456820

  • Contributing Member
  • **
Re:Return to formation
« Reply #1 on: 27 Jul 2005, 16:12:02 »
unit_name dofollow leader unit_name
should do it just pu that in the activation field

Offline greg147

  • Contributing Member
  • **
    • Royal Air Assault Battalion
Re:Return to formation
« Reply #2 on: 27 Jul 2005, 16:30:45 »
Thanks, that works  ;)
Royal Air Assault Battalion - [L/Cpl] Greg
RAAB

Offline greg147

  • Contributing Member
  • **
    • Royal Air Assault Battalion
Re:Return to formation
« Reply #3 on: 27 Jul 2005, 18:45:47 »
Reached another problem with this  :P

All the units are in their places, and the leader has a waypoint to his position.
When a trigger is activated, I have guy1 dofollow leader guy1; guy2 dofollow leader guy2 etc
That trigger is syncronised with the leaders next waypoint. The trigger activates, and everyone goes to the leader, yet he doesn't continue to his next waypoint.  :-[

Anyone know how to fix this?  :-\
Royal Air Assault Battalion - [L/Cpl] Greg
RAAB

Offline 456820

  • Contributing Member
  • **
Re:Return to formation
« Reply #4 on: 27 Jul 2005, 19:10:35 »
did you use waypoints here or do move commands ?
also if you used dostop this on him then you need leader_name dofollow leader_name aswell in the activation field

Offline greg147

  • Contributing Member
  • **
    • Royal Air Assault Battalion
Re:Return to formation
« Reply #5 on: 27 Jul 2005, 20:31:52 »
I used domove commands on the lower ranked guys to get them inot their individual positions, and used dostop to keep them there.
I gave the leader a normal group waypoint to go to his position, and didn't use dostop.
Then I use dofollow to get everyone to return to him, and he has his next waypoint, which he should go to. But he doesn't.  :-[
Royal Air Assault Battalion - [L/Cpl] Greg
RAAB

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:Return to formation
« Reply #6 on: 27 Jul 2005, 20:46:08 »
What type of waypoint is the first one of the leader?

I'm not aware of a 'normal group waypoint'

~S~ CD
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted

Offline greg147

  • Contributing Member
  • **
    • Royal Air Assault Battalion
Re:Return to formation
« Reply #7 on: 27 Jul 2005, 21:55:11 »
He has a move waypoint, then his next move one is at his position, and has the blue syncronise line between it and the trigger. Then he has the next move waypoint, to the next location, which he refuses to go to  :P
Royal Air Assault Battalion - [L/Cpl] Greg
RAAB

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re:Return to formation
« Reply #8 on: 27 Jul 2005, 22:06:57 »
is the trigger type 'switch'?

Offline greg147

  • Contributing Member
  • **
    • Royal Air Assault Battalion
Re:Return to formation
« Reply #9 on: 27 Jul 2005, 22:35:59 »
No, its just one that activates when 'east not present' :P
Royal Air Assault Battalion - [L/Cpl] Greg
RAAB

Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:Return to formation
« Reply #10 on: 28 Jul 2005, 07:48:41 »
Try this:

"_x dofollow (leader _x)" foreach units group

or even:

"_x dofollow (leader _x)" foreach units unitname

What's happening is the leader is stopping due to the domove, and needs a kick to get him going again. Telling him to follow himself is effectively using the 'return to formation' command, and should get him moving along his waypoints again ;)

Offline greg147

  • Contributing Member
  • **
    • Royal Air Assault Battalion
Re:Return to formation
« Reply #11 on: 29 Jul 2005, 10:33:56 »
Sorry, that didn't work  :-[
The leader doesn't have domove on him anyway.
Everyone returns to formation, but he just stays there.
Royal Air Assault Battalion - [L/Cpl] Greg
RAAB

Offline greg147

  • Contributing Member
  • **
    • Royal Air Assault Battalion
Re:Return to formation
« Reply #12 on: 31 Jul 2005, 22:39:52 »
Sorry to bump this, but I really need some help fixing it. If I can't get it fixed, it kinda ruins the whole begining of the mission, and i'll have to rework it from scratch.  :-\
Royal Air Assault Battalion - [L/Cpl] Greg
RAAB

Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:Return to formation
« Reply #13 on: 01 Aug 2005, 05:39:29 »
I'd say your issue is the trigger somehow... are you sure the trigger is being activated?

Try putting a hint line in the trigger OnActivation field. If it doesn't go 'bing', you know that's the problem ;)

Offline 456820

  • Contributing Member
  • **
Re:Return to formation
« Reply #14 on: 01 Aug 2005, 08:15:46 »
is there any sort of delay in the officers waypoint wich will cause him to wait until that times up then he will move how about
groupOne lockWP true
or is it
groupOne lockWP false

as the comref suddgests
Quote
group lockWP lockWP

Operand types:
group: Object or Group
lockWP: Boolean
Type of returned value:
Nothing
Description:
Disable switching to next waypoint (current waypoint will never complete while lockwp is used). Sometimes used during cut-scenes.

Example:
groupOne lockWP true

so that might help since your squad uses do move waypoint
instead of redoing the mission and not being able to get this to work you might have to use domove commands instead of waypoints

hope that helps