Jump to content
Sign in to follow this  
jonneymendoza

Start a mission inside a heli with AI flying?

Recommended Posts

Hi guys, i want to create a mission where at the very start a player and his squad AI are inside a chopper flying to a specific location using waypoints. the chopper will be flied by an AI and will land in a specified location.

How do i do this in the OA editor? i tried adding a chopper and setting it to "flying" and then add that chopper into a group of infantry unites with one of those units being a player. what happens is that the infantry unites just stand below the chopper which is up in the air hovering around while the player and ai are on the ground?

Anyone know how to accomplish this? Also, how do u use the weather module to make it rain or something? i added a weathe rmodule but there is not settings to make it rain?

Cheers in advance

Share this post


Link to post
Share on other sites

Place a chopper with attribute "flying" on map, name the chopper Heli1.

Place a Group of Soldiers on map, set one as player in that group.

Write into the groupleaders init:

{_x moveincargo Heli1} foreach units group this

Share this post


Link to post
Share on other sites

If you still have problems watch these two videos, they are very helpful and simple to follow.

Share this post


Link to post
Share on other sites

awsome thanks. i have just started playing around with the editor for the first time. By the way, where do you type in these scrips? in some kind of text file and save it into my arma 2 folder and load it from within the editor?

Share this post


Link to post
Share on other sites

the code i posted or real scripts?

Small code snippets can be put into the init-line of an object you placed on the map. The longer it gets, the more useful it is to use a script-file. and place it into your saved-editor-mission folder.

Share this post


Link to post
Share on other sites

Ok cool i imagine the init line is inside the object GUI where i specify and select the side, type of unit etc etc?

Sorry because im currently away from my pc at home so cant check and see where this init line is but im guesisng its in the editor and on the object properties window

Share this post


Link to post
Share on other sites
Place a chopper with attribute "flying" on map, name the chopper Heli1.

Place a Group of Soldiers on map, set one as player in that group.

Write into the groupleaders init:

{_x moveincargo Heli1} foreach units group this

Tried the above steps and diddnt work. Me and my AI team mates are stuck on teh ground while the Heli is up in the air on its own.

im guessing it has something to do with _x? what goes in their? i tried specificying a custom name for the groupleader unit and replacing the_x with the given name and still diddnt work.

edit: i even tried to use this:

READ TO SEE THE CODES:

Landing Waypoint ON ACT field:

helicopter land "land";

Helicopter name:

helicopter

Helicopter Init field:

helicopter flyInHeight 85;

Unit (Man) Init field:

this moveInCargo helicopter;

i pretty much copied and pasted it and followed teh video and it diddnt work. Maybe not compatible with OA?

---------- Post added at 08:26 PM ---------- Previous post was at 07:23 PM ----------

edit: i tested the exact same code on arma 2 and it works. seems like the moveInCargo script is not compatible with OA

Edited by jonneymendoza

Share this post


Link to post
Share on other sites

the code says:

Each unit of the group gets the same "order to be inside on initialising mission"

heli1 = name of helicopter

Helicopter name:

helicopter

Unit (Man) Init field:

this moveInCargo helicopter;

i pretty much copied and pasted it and followed teh video and it diddnt work. Maybe not compatible with OA?

That should at least do the trick for the unit where the code is written into the init-line..

This code is pretty much one of the oldest codes since OFP - must work therefor.

Share this post


Link to post
Share on other sites

started a fresh new mission and indeed it did work. dont know what the issue was before

Share this post


Link to post
Share on other sites

maybe a space somewhere in the code, a locked chopper... nevermind, you got it to work now.

You've also asked for a rainy daytime in your initial Posting:

On the right side in the editor when you click on the Intel-Screen(date and Time displayed), you can setup the Daytime, weather and fog values...

overcast-slider to the left: rainy weather, overcast to the right: good weather.

fog-slider to the left: less fog, fog-slider to the right: more fog...

Share this post


Link to post
Share on other sites
Weather module creates clouds in the sky around the player. This is oftenly used for planes missions so you can go through some clouds.

Maybe you should start reading the wiki/pinned topics..^^

Share this post


Link to post
Share on other sites

My advice: Reading is way better than watching videos. You'll always stumble upon some questions in your mission-making career. Its easier to find a specific point in 2 or 3 tutorial-files than watching through videos, waiting for the exact spot you were looking for...

Try that one @ start - it has a lot of good basics and most of the codes/tricks apply even for todays A2-OA: http://www.armaholic.com/page.php?id=4847

For the actual classes-list go here: http://www.armatechsquad.com/ArmA2Class/

Edited by Egosa-U
classes-list added.

Share this post


Link to post
Share on other sites

Cheers, i actually am a java developer as my daily job. i feel that i can easily learn scripts but a bit too lazy to do it outside work as normaly when i reach home i like to chill and just play.

i imagine there are some scripts i can already copy or download that i can edit and use?

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  

×