Home   Help Search Login Register  

Author Topic: COC-Airborne Drop Problems  (Read 540 times)

0 Members and 1 Guest are viewing this topic.

Demmun

  • Guest
COC-Airborne Drop Problems
« on: 01 Jan 2004, 15:25:30 »
Greetings,

I am having a problem in creating an airborne drop. I am using the Chain of Command engine to command the soldiers throughout the mission.

I have created 3-groups of soldiers.
I have the soldiers starting the scenario aboard a C-130 in flight.
The C-130 flies to the drop-zone via several waypoints.
The soldiers parachute from the C-130.
The C-130 continues on to a "deletevehicle" waypoint.
The parachuting soldiers land.

-Here is where the trouble starts-

All of the soldiers the reach the drop-zone begin running around the countryside, trying to "mount" the now deleted C-130.

I can access the individual groups through the COC radio/map menus, but all 3-groups ignore any movement orders that I give them.

I can sorta control the individual soldiers (soldiers 2-12 in the group) via the remote camera option and can give orders that will stop them from trying to mount the C-130. But I can not stop the leader from trying to mount the C-130.

Soooo, what I end up with is 3-groups of soldiers chasing their group leader around as he randomly runs around the map trying to mount the no long existing C-130.
I assume that this is some scripting problem but I have run out of ideas.

My question is:

How do I prevent the soldiers that reach the drop-zone from trying to re-mount the C-130?

How do I give initial orders to the group leaders that will prevent them from trying to mount the C-130?

I thank you in advance for any time you may spend on my problem.

-The Demmun

Offline DarkAngel

  • Members
  • *
  • The night is my friend.
    • DarkAngels Missions
Re:COC-Airborne Drop Problems
« Reply #1 on: 01 Jan 2004, 16:49:50 »
Hey Demmun,

I've had the same problem working with the command engine. The only way I've been able to get round it is to cheat and start with the soldiers in parachutes rather than in aircraft. So I create empty parachutes for each group leader, set their position so they're at a safe drop height, then copy them so there's a chute for everybody and moveInDriver them all. If you wanted you could have the C130 flying off just in the player's view.

Hope that helps!
DarkOut
"Moondark" in Beta Testing

deaddog

  • Guest
Re:COC-Airborne Drop Problems
« Reply #2 on: 01 Jan 2004, 16:50:55 »
After you "eject" the units, then unassignvehicle them:

unassignvehicle unitname

That should solve your problem :)


Demmun

  • Guest
Re:COC-Airborne Drop Problems
« Reply #3 on: 02 Jan 2004, 03:47:08 »
Thank you DarkAngel,

I was able to do exactly as you said. The drop works fine in the manner you stated. -  :)

Another question -
Can I have the groups be created when the C-130 passes the drop-zone, using a trigger?

Or-
Is there some other way to have their entry into the scenario be delayed for say 10-minutes or so after the mission startup?



Thank you DeadDog,

I was unable to use the "unassignvehicle" entry -  :-\
I tried it in the drop-zone trigger in the "on activation" line following the eject command, nothing happened
I tried it in a seperate trigger over the drop-zone, nothing happened.
I tried it in the groups first waypoint after the drop, nothing happened.

I seem to be doing something wrong -
How or where do I use the entry?



Again, thank you gentleman for your time.

-Demmun

deaddog

  • Guest
Re:COC-Airborne Drop Problems
« Reply #4 on: 02 Jan 2004, 04:11:22 »
I think you are trying to make a simple problem a lot harder than it should be. :)

Try this method:

Make a file called eject.sqs and put it in your mission folder:
Code: [Select]
_unit = units (_this select 0)
_count = count _unit
_i=0

#loop
_u=_unit select _i
_u action ["eject",vehicle _u]
unassignvehicle _u
~1

_i=_i+1
?_i<_count:goto "loop"
exit

When you want to drop the troops then call the script like this:

[groupname] exec "eject.sqs"



Demmun

  • Guest
Re:COC-Airborne Drop Problems
« Reply #5 on: 02 Jan 2004, 04:38:16 »
Thank you DeadDog,

Your script worked beautifully.  :)

Thank you for taking the time to write it and post it for me.

You are correct. I do tend to make things a bit more complicated than they really are. I am a beginner at editing. I have been reading the forums extensively and trying to learn as best that I can. This is the first problem I have run into and been unable to figure out on my own.

Thank you again,

-Demmun

deaddog

  • Guest
Re:COC-Airborne Drop Problems
« Reply #6 on: 02 Jan 2004, 04:49:47 »
This script is a modified version of a script from this site.  An oldie but a goodie :)  I think it was one of the first scripts I used.  Paratroops are just too cool  ;D