Jump to content
Sign in to follow this  
iceman11a

Convoy, Getting then in. ?

Recommended Posts

I didn't think it would be this hard. After playing with Arma 2 over a year ago. I didn't thing it would be this big of a pain in the butt. I would attach what I have so that some one can help. It would be better if I could attach the file to this post. I wish some one would make video tutorials or setup an Articles selection that has all this info in it. Then we more then likely wouldn't have to ask again.

All I have is 3 groups of men, WEST.

SkoTroops1 = group this; // This is 7 men, They get into a truck.

SkoPlayers = group this; // This is the player and 3 team members, they get in the 1st hummer

SkoTroops2 = group this; // This is 4 men, They get into the 2nd hummer.

Then try drive down the road and stop and get out. Just use a trigger.

This getin.sqs script gets ran when the game starts. In the Players group leader (officer) init field.

and one more thing, Is there an wen site that does have an article select to add tutorials like this. If not let me know. If some one or 2 are wanting to add the articles. I'll set it up so that you can do it on my web site. Sense it has an articles section.

Ice

Share this post


Link to post
Share on other sites

Ok, this is weird, not one person. Hmmm, This is strange. I don't think this has happen before. I see that I have other posts as well that where I didn't get any help at all and I forgot about them. Now what do I do.

Share this post


Link to post
Share on other sites

Unless you didn't notice, there are very few people still posting in the OFP section, and always the same guys. BTW i don't see where the question is in your post.

Share this post


Link to post
Share on other sites

?, I sorry I didn't know that. I all ways thought that games for OFP are still being played. My question is that I need a sample of how to load groups into a truck and hummers and move them out and then get them out of the hummer. I would post my mission. There's no way to attached a file to these posts unless you upload it some where else and post a link for it. I wish they would allow posting files.

Share this post


Link to post
Share on other sites

The game is still being played, but there are not many posters here anymore, so you'll have to be patient :

Anyway, to put a group into a vehicle in cargo spaces :

{_x moveincargo vehicle_name} foreach units name_of_group

To disembark them, the easiest way would be to give an unload transport WP to the vehicle's driver.

Edited by ProfTournesol

Share this post


Link to post
Share on other sites

Iceman,

Like ProfT suggests be patient for responses to your postings as the community is now so small. Most likley if your posts go un-answered for a length of time there might not be a good answer to give you.

Ofp was released in 2002 which now makes it nearly 14 years old. To have anyone still interested in a game that old is truly amazing. There is still a small but dedicated OFP community, but resources are limited. This fourm has been in place since the inception of OFP and expanded for ARMA, ARMA2/OA, ARMA3, TOH, TOM, Ironfront and CC. They are not going to change the fourm to meet the wishes of one OFP user. What you asked for in another post for something like SixUpdater for OFP and now the ability to attach files all take storage space and bandwidth usage, there is a cost associated with this. This is a free fourm therefore you must be happy with what it has to offer. Free file hosting sites are fine for 99.9% of the users here. OFPR.info and OperationFlashpoint.gamefront are the main resources still available to you. Of course there are a couple of smaller Russian, Czech, Polish and Finnish sites open also. I continue to provide files on an as needed basis per requests posted in the proper threads in this fourm.

Share this post


Link to post
Share on other sites

Your request can be handled on two ways:

1- If you want the game to start and all dudes in there vehicles you should use what ProfTournesol point to:

{_x moveInCargo vehicalname} foreach units group this

Put this command in each init group leader.

2- If you want them to start from the ground and then they get in.., use this in the init of each leader:

unit1 action ["GETIN CARGO",vehicle1]

make sure vehicles names and group leaders are correct.

when to reach your heading location you can simple choose the waypoint "Get out".

Now if you want them to get back again to their vehicles, make a trigger on the place they get out and put one of the above commands in activation.. and control the time when to be activated.

Share this post


Link to post
Share on other sites

Thanks, It's just i know that. It doesn't work, SO what in the crap I'm I doing wrong

I have some thing like this

{_x moveInCargo SkoTruck1} foreach units group SkoTroops1;

and I did have some thing like this in each init field. SkoTruck1 moveincargo this and I couldn't get it to work all so. So that's why I was asking for a sample.

Share this post


Link to post
Share on other sites

Thanks, That's another one I tried too. So I'm stuck on this. I would like to try and find a sample.

Share this post


Link to post
Share on other sites

Man..

Just put this exactly in the init of the leader without any changes..

{_x moveInCargo SkoTruck1} foreach units this;

Share this post


Link to post
Share on other sites

First of all, the following script works :

_SkoTruck1 = _this select 0
_t1 = _this select 1
_t2 = _this select 2
_t3 = _this select 3
_t4 = _this select 4
_t5 = _this select 5
_t6 = _this select 6
_t7 = _this select 7

{_x moveInCargo _SkoTruck1} foreach units SkoTroops1

exit

You made a typo on the first line (_SkoTruck1 = _this select 0 was _ShoTruck1 = _this select 0)

On a second hand, if you get rid of your script and simply write :

{_x moveincargo SkoTruck1} foreach units group this

in the init line of the group leader, it works also.

Share this post


Link to post
Share on other sites

The reason for this is that I still have the 1st and 3rd groups to mount in the hummers. Did you by chance test this. Sense you have the mission. Because this doesn't work.

Share this post


Link to post
Share on other sites

Same way, same command : just change the name of the vehicle and put the command in the init line of the other group leaders. I must leave for now, but i'll be back tomorrow if you have other questions.

Oh, and if you want individual soldiers of the same group to be in different vehicles, you must put in each of their init line :

this moveincargo name_of_vehicle

Edited by ProfTournesol

Share this post


Link to post
Share on other sites

No, Thanks that's not what I wanted. I said I still have 2 more teams to mount up. the 1st and 3rd groups. 1st groups is the players group. They go in the 1st hummer. and the 3rd group goes in the 2nd hummer.

and No. I didn't delete any thing. I'm still using the getin.sqs file in the mission folder. Then after I get them mounted. then I have to get them on the way. Then I have to setup more options in the getin.sqs script. See I haven't got that far yet. Right now I'm just trying to get the troops to mount up and nothing works so far.

Share this post


Link to post
Share on other sites

Iceman,

I've been looking at your mission outside of the game and it looks like your trying to make a very simple thing complicated.

You have this in your getin.sqs

;_xhandle = [<GROUP>,<VEHICLE>] execvm "Eject.sqf";

execvm is an ARMA command (not OFP) and you don't have eject.sqs in the mission folder.

{_x moveInCargo _SkoTruck1} foreach units SkoTroops1;

You didin't define a group as SkoTroops1. Also _SkoTruck1 is a variable you've created without any name assigned to it.

Then in mission.sqm #3 and #4 slots of the first group you have this:

init="SKoPlayers = group this; [skoTruck1, t1,t2,t3,t4,t5,t6,t7] exec ""getin.sqs"";"; (<< one to many ";" btw)

init="SkoPlayers = group this;"; (again one too many ";")

Problems are:

1. You've named the units in the group p1,p2,p3...etc. (t1,t2,t3...etc are in the second group.)

2. To declare a group ID it needs to go into the leaders init field.

Then in the second group you have:

init="SkoTroops2 = group this; SkoTroops2 moveInCargo SkoTruck1;"; (again one too many ";")

I don't think this syntax will work.

With this mishmosh of commands the game has no idea of what you want it to do.

Here are a few simple things to follow.

1. "Skotroops1=Group this;" Needs to go in the leaders init field.

2. "{_x moveInCargo SkoTruck1} foreach units SkoTroops1;" is all that is needed to put a group of units into a vehicle

3. "{_x action ["GETOUT", SkoTruck1]} foreach units SkoTroops1;" is all that is needed to have the group disembark.

I know it's not what you want but I made a sample mission that shows how to start a group in a truck and have them get out.

Start in truck

Truck drives a distance

Squad gets out

Truck drives away

Squad attacks some Russians

http://www.mediafire.com/download/shd9tdnz40qdee4/SkoTest1.Eden.zip

Edited by Zulu1

Share this post


Link to post
Share on other sites

Z, I'm sorry, the mission you have is from another day. I must have mixed them up before I zip it and uploaded it. Every thing works. but the players team. The player is not the the leader. and I took some of the team members down. I really thinned them out. The numbers may be too small. any way I just can't get the player, p1 and p2 to enter the SkoHummer1, any ideas. The p1 is the team leader and p2 is a medic. and then player would be who ever plays the mission.

Share this post


Link to post
Share on other sites

If you want to post what you have now, I'll test it out and fix it for you. If you intend to use this on a dedicated server you might run into problems that only exist in MP. Don't be disappointed or frustrated if things don't work as planned.

Share this post


Link to post
Share on other sites

Sure, here http://www.mediafire.com/download/8pdk4vvkofegrtz/weed_kills.eden.rar

That's what I have so far. Let me know. and I won't do any thing until I get it back from you, any way the route is down the road. Until you come to a house. You should see a marker making the location of where the convoy should stop at and get out. and the Hummers and Truck leaves.

Share this post


Link to post
Share on other sites
Sure, here http://www.mediafire.com/download/8pdk4vvkofegrtz/weed_kills.eden.rar

That's what I have so far. Let me know. and I won't do any thing until I get it back from you, any way the route is down the road. Until you come to a house. You should see a marker making the location of where the convoy should stop at and get out. and the Hummers and Truck leaves.

Iceman,

Ok I got it working. Getting everyone into the vehicles wasn't a problem, very easy. I split the guys between the two humr's. With the grouping and vehicles getting everyone out and to stay out took a little work, but got it done.

Here's your file back:

http://www.mediafire.com/download/spmvio9dxm8svpt/weed_kills.eden.zip

Share this post


Link to post
Share on other sites

Z, I'm sorry, Only part of it worked. They got down to the house. Nothing happen. We just sat there. When I got out on my own, My team leader just told me to get back in. and remember. I didn't want this is the units init field. I wanted it all in a script. The idea is for me to learn the scripts. So when the Truck and hummers got to the house where the target maker is. Then another script should run so they could get out.

Like I said, It drives down to the house and we just sit there. Nothing happens. I would like all of it put in a script.

Share this post


Link to post
Share on other sites
Z, I'm sorry, Only part of it worked. They got down to the house. Nothing happen. We just sat there. When I got out on my own, My team leader just told me to get back in. and remember. I didn't want this is the units init field. I wanted it all in a script. The idea is for me to learn the scripts. So when the Truck and hummers got to the house where the target maker is. Then another script should run so they could get out.

Like I said, It drives down to the house and we just sit there. Nothing happens. I would like all of it put in a script.

Hmm...odd, I was doing thins in CSLA and it worked fine, tried in vanilla OFP and it does as you say. I'll give it another shot. Sorry.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×