Home   Help Search Login Register  

Author Topic: Getting units to stick close  (Read 444 times)

0 Members and 3 Guests are viewing this topic.

Nobby

  • Guest
Getting units to stick close
« on: 14 Feb 2003, 15:28:47 »
I've been playing around a lot with urban missions recently and i've found that the soldiers are too spaced out and I soon lose track of where they all are and somehow they manage up either in a building or on the other side of a wall... How do I get them to stick very close to me, as in an eighth of a metre gap between each soldier?
The doFollow doesn't seem to work.
Also, just to complicate things, I only want them to stick close when i'm either stopped, stealth walking or just plain running; when I'm flat out running would it be possible to get them to return to the standard distance between each soldier.
I know this sounds a bit  ??? so if you need any further narrative just ask.
Cheers
Nobby.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Getting units to stick close
« Reply #1 on: 15 Feb 2003, 01:52:21 »
I don't know if this would work, but it might be worth a try....

Create a radio trigger such that the player can switch a script on and off.    The script obviously makes the soldiers in your group keep very close to you.

The structure of the script would be something like this

#loop

?scripton=false goto "End"

?loon1 distance leaderAlpha > 1:loon1 doMove getPos leaderAlpha

?loon2 distance loon1 > 1:loon2 doMove getPos loon1

~0.5
goto "loop"

#End
exit


Check the syntax but hopefully you get the idea.     Obviously you can adapt for as many soldiers as there are in the group.   scripton is the variable set by the radio trigger.

The disadvantage of this is that you would tend to lose formation.... I have no idea how to overcome that, but then when you are in very restricted terrain formation kinda gets thrown out of the window anyway.

I know this is not a perfect solution but it might provide some food for thought.
Plenty of reviewed ArmA missions for you to play