OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: cirkut5732 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
-
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 (http://users.telenet.be/blanco/Scripts/ICPguard.Eden.zip)
The ICPanims are in the zip
-
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 (http://www.ofpec.com/editors/resource_view.php?id=639).
Another way to do this is by switchmoving them into an animation that doesn't allow them to move--hence Blanco's scripts.
-
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
-
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
-
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!!!
-
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??
-
???
Check my last post, there's an attachment (ICPguard_only stand.Eden.zip) below, I've already modified the script and demomission for you.
-
wow! didnt even see that thanks a bunch!!!