OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: DOA on 17 Jan 2005, 20:05:17

Title: Can't get my group men out of a vehicle.
Post by: DOA on 17 Jan 2005, 20:05:17
I want to start my group floating along in an M113 just off shore. The M113 is not part of my group. I use the "_x moveInCargo m1" forEach units group this; in the group leaders init to start the group incargo on the M113, the name of the m113 is m1. The M113 crawls up on the beach and reaches it's waypoint "Transport Unload" and I pop out onto the beach as planed. (I am the group leader) I then order my group to disembark, but they stay in the M113. (This doesn't happen in the editor only when I try it on my dedicated server as a multiplayer game.
As best I can tell from searching, I need to somehow unassign them from the m113 at the transport unload waypoint. I am guessing this happens, because they were not "picked up" or "get in"  they started incargo. Thanks in advance for all your help...DOA
Title: Re:Can't get my group men out of a vehicle.
Post by: The-Architect on 17 Jan 2005, 21:26:53
Use this,

http://www.ofpec.com/editors/resource_view.php?id=195
Title: Re:Can't get my group men out of a vehicle.
Post by: macguba on 17 Jan 2005, 23:09:23
When you use a moveInCargo command, in general you should also use an assignAsCargo command.     Otherwise the game tends not to "know" where the units are.

Try that before the fancy scripts.    ;)
Title: Re:Can't get my group men out of a vehicle.
Post by: THobson on 17 Jan 2005, 23:11:46
You can assign them as cargo in the editor.  The 'Special' drop down box has an option for 'In Cargo'
Title: Re:Can't get my group men out of a vehicle.
Post by: DOA on 18 Jan 2005, 02:11:31
I have tried the paradrop script and it works great. Thank you to The-Architect for helping me out. That is a good script to have.  I am honored to have a reply on my lame post from macguba, a man who literally wrote the book on editing for beginers.  http://www.ofpec.com/includes/download2.php?id=365 (http://www.ofpec.com/includes/download2.php?id=365) Thank you, Your work is appreciated. I am looking into this assignAsCargo thing. There is so much I need to learn, but I can't stop making my simple little missions long enough to study. Thanks also to THobson.  I can use all the help I can get! :-)