Jump to content
Sign in to follow this  
Stigah

Squad start inside a car?

Recommended Posts

Hello. First of all I have so apologize my really bad english.

I am going to make a mission, where we are going to drive the president to another place. I therefore need a convoy, with a lot of cars, pluss some tanks (Maybe a helicopter too, who can search after enemies from the air)

Anyway. I want the cars / tanks to be loaded with people. Max people in every vehicles, if you know what I mean (Like the Ural vehicle thing. There can be ... I think 10(?) people in the back of the car.) I want that car fully loaded of millitary people. Is there a way to do this?

I know that I can place a lot of people on the map, and then command them into the cars, but I want them to start inside the cars to start with. (And is it possible to do so that a vehicle is a squad? So I can't command over so many people (I really hope you understand what I mean here? if not, click the spoiler :P)

Let's say I have 10 cars. I can only command the leader in the cars. So I can only command 10 people, but there will be around 40 people in the whole convoy. I don't want to command 40 people. Then it will be a lot of people in the menu thing (Where we can select units :P) Sorry bad explanation.

Is this possible?

Is this actually possible to do?

And. In the Ural trucks (with a lot of people). I want them to jump out if they see enemies (If one of the cars in the convoy see an enemie, the whole convoy stop, and the people jump out of the cars, attacking the enemies)

I really, really hope all of this is possible, and I really hope that someone here are willing to help me with this :D

Thanks for the help! :D

Share this post


Link to post
Share on other sites

Hi,

what I use for squads starting in cars is this:

in the leaders init field:

{_x assignAsCargo nameofthevehicle} foreach units group nameofunit;

{_x moveinCargo nameofthevehicle} foreach units group nameofunit;

To get them out I use a trigger (for example Opfor detected by bluefor)

{unassignVehicle _x} foreach units group nameofunit;

and additionally this to get them in the fight:

groupname setBehaviour "Combat";

groupname setCombatMode "red";

hope this helps!

Share this post


Link to post
Share on other sites

Thank you very much Melmarkian!

The only problem, is that I am a really noob at this here :P

I placed an Bluefor - US - HMMWV, and entered this code:

{_x assignAsCargo HMMWV} foreach units group nameofunit;

{_x moveinCargo HMMWV} foreach units group nameofunit;

People didn't spawn inside the car. Do I need to write {_x assignAsCargo BLUEFORUSHMMWV} or something? And I am going to place this code inside the Initialization-field of the car?

Thanks for answering :)

Share this post


Link to post
Share on other sites

Here is an example:

http://www.mediafire.com/?ctvjb4lai1ei2c2

The squad GroupOne you see on the airfield has the commands in the init-field. When you preview the mission you will notice they start all inside the truck (trooptruck).

You can use the radiotrigger alpha (0 - 0 - 1) to let them disembark. But you could set the trigger to any condition you wish.

I hope you have A2 because its on utes. Let me know if you want a different island.

The commands are explained in the spoiler:

groupOne = group this;

// I use this to define a group, in this case groupOne.

{_x assignAsCargo trooptruck} foreach units groupOne;

// trooptruck is the name of the vehicle and groupOne is the name of the group to enter

{_x moveInCargo trooptruck} foreach units groupOne;

// same as above

Edited by Melmarkian

Share this post


Link to post
Share on other sites

Thank you very much for taking the time to make that!

I don't think I have A2. I only have Arma 2: Operation Arrowhead. Or is A2 another thing, ingame? (map?)

It's a little embarrassing, but I dont know where to place the mission.sqm file :o

Share this post


Link to post
Share on other sites

If you just have Operation Arrowhead and not the original Arma 2 take this file:

http://www.mediafire.com/?1zxyyweqqk9o868

In the zip-file there should a folder named: assignexample2.takistan.

Copy this folder into C: \User > yourUsername > Documents > Arma2 > missions

You will see the mission when you click load inside the editor.

Share this post


Link to post
Share on other sites

Thank you very much Melmarkian! :D

Is it possible to do so that I become the driver of the truck? :)

And. Is it possible to do so that the cars can only drive at the road? Not take shortcuts, etc? :)

Share this post


Link to post
Share on other sites

no problem,

for the driver thing you could use:

player assignasdriver trooptruck;

player moveindriver trooptruck;

But you need to place an empty vehicle, not one which has an driver already.

With the cars i think behavior careless let´s them drive more on road. Or just make a lot of waypoints on the roads.

Share this post


Link to post
Share on other sites

Thank you very much for the help :D

But I can't get the "get out of the car when an enemy is seen" thing too work :O

And the driver thing is not working either :o I placed the script on an empty truck.

Edited by Stigah

Share this post


Link to post
Share on other sites

Thank you, but is it possible to get that guide in an english version? :)

Share this post


Link to post
Share on other sites

ops. was late so i did not see that, things happened to fast X)

Tnx Lonestar for posting the correct one.

And Stiga, first rule of scripting/mission editing is investigating.

search buttons on forum, search the web, google, youtube etc.

Good luck in your future mission editing.

Share this post


Link to post
Share on other sites

Thank you very much :D

Hehe, it's ok Demonized ;)

But ... 332 pages! wow :P I should start reading now then, hehe. But it takes ages before I am finnish reading it, and I want to be finnish with this mission today, so is there somebody who know how to do this? :) Like. They get out of the car automatic when they see enemies, and I automatic become the driver of the car in the beginning of the mission.

The codes didn't work, or maybe I did something wrong.

Share this post


Link to post
Share on other sites

You dont need to read the whole thing m8 :j: .. there is a search function in the guide aswell, keywords for you is:

assignAsCargo

moveInCargo

assignAsDriver

moveInDriver

orderGetin

driver

search

if you dont understand whats said in the guide you wont understand what we tell you as we will tell you the same thing.

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  

×