Home   Help Search Login Register  

Author Topic: getting unit to stay where it was after grouping  (Read 1165 times)

0 Members and 1 Guest are viewing this topic.

cirkut5732

  • Guest
getting unit to stay where it was after grouping
« on: 01 Mar 2005, 02:31:26 »
hey everyone
  well i was building a mission with a bunch of soldiers like 70 or so but i didnt want to group them together i wanted them to be single men, but as im sure you guys know and i just found out, you can have only 63 or 63 groups.
   so now i have to group some guys together so i can make more units, problem is -
Everytime I group 2 loons (they are placed where i want them!!!!) one loon moves behind or next to the other loon, ive set the formation to none in cargo everything, ive used this switchmove "effectStandStill", he will stay where i placed him for a second then starts turning around, facing other directions, walking towards other grouped loon. So how do i group 2 loons so they stay where i put them!!! (they are guarding a gate. one on left one on right)

thanks again

Offline Blanco

  • Former Staff
  • ****
Re:getting unit to stay where it was after grouping
« Reply #1 on: 01 Mar 2005, 02:46:23 »
If your mission is SP you don't mind to use a small addon (ICPanims) for this, I recommend you my ICPguard script,
It was made for this kind of stuff.


ICPGuard

The ICPanims are in the zip
« Last Edit: 01 Mar 2005, 02:53:26 by Blanco »
Search or search or search before you ask.

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:getting unit to stay where it was after grouping
« Reply #2 on: 01 Mar 2005, 03:06:12 »
In the unit's init field:

dostop this

There is one problem with this however: once anyone in the group starts to engage the enemy, the rest of the units in the group will move out of their positions and try to engage the enemy (no matter where they are).

The only way to get around this is to force the unit to stay exactly where he is. This can be done via the commands:

this disableAI "move"; this disableAI "target"

I've made a small script that does this, and also puts the unit into a postion (prone, standing, or crouched), which can be found here.

Another way to do this is by switchmoving them into an animation that doesn't allow them to move--hence Blanco's scripts.
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!

cirkut5732

  • Guest
Re:getting unit to stay where it was after grouping
« Reply #3 on: 01 Mar 2005, 03:22:42 »
Thanks guys

The ICGuard script is kewl I like how he slings his weapon over his shoulder..One problen tho, when they arent grouped with the blue line they both use your guard script great. Once i group em with the blue line one of the 2 loons sits down, anyway around that

General Baron-Thanks for the init line, ill check into those scripts too

 this forum has been really helpful and extremely nice to my stupin noob questions, Thanks to all

Offline Blanco

  • Former Staff
  • ****
Re:getting unit to stay where it was after grouping
« Reply #4 on: 01 Mar 2005, 09:09:14 »
Quote
Once i group em with the blue line one of the 2 loons sits down, anyway around that

That's right, I've made it like that so the leader always stands, the other may sit. It should look weird if the leader sits down and his soldiers stand in front of him...

But I can modify the script so everybody in the group use a standing animation.


**edit**
Here u go
« Last Edit: 01 Mar 2005, 09:17:13 by Blanco »
Search or search or search before you ask.

cirkut5732

  • Guest
Re:getting unit to stay where it was after grouping
« Reply #5 on: 01 Mar 2005, 21:21:14 »
Blanco- That would be great if you could make your script so they all stand, I love the animation, The gun slung over shoulder, adds depth to the charector, I need them all to stand because it looks funny when i place to guys in front of a gate and one stands and one is sitting, but your also right it would look wrong if leader was sitting and group not, Ive used your script already in a couple of other spots in my base im making but i could really use a modified script (if its time consuming dont worry bout it) ive never made a script so i dont know how long it takes. Again thanks for your help!!!

cirkut5732

  • Guest
Re:getting unit to stay where it was after grouping
« Reply #6 on: 01 Mar 2005, 21:22:52 »
forgot to add blanco when you say "Leader stands group MAY sit, Does that mean i have the option to make the group sit or stand?? if so i wont need a modified script. if you can make the whole group stand what is the script line please??

Offline Blanco

  • Former Staff
  • ****
Re:getting unit to stay where it was after grouping
« Reply #7 on: 01 Mar 2005, 23:18:03 »
 ???

Check my last post, there's an attachment (ICPguard_only stand.Eden.zip) below, I've already modified the script and demomission for you.

 
« Last Edit: 01 Mar 2005, 23:27:27 by Blanco »
Search or search or search before you ask.

cirkut5732

  • Guest
Re:getting unit to stay where it was after grouping
« Reply #8 on: 01 Mar 2005, 23:23:54 »
wow! didnt even see that thanks a bunch!!!