Delta Force Barracks Forums

Making a chopper Fly/Land and repeat

Gen.Rhyno*EMFF* - 4-25-2003 at 02:35 AM

Ok guys here is a simple explanation of how to make a chopper takeoff, fly to a destination, land, takeoff and fly back to base and land, then repeat.

First of all set out your waypoints. Your first waypoint should be where your chopper will start from (WP#0.0). Next Waypoint will be 0.1 and so on

In your first waypoint you will need to make an Area Trigger, also do the same where you want your chopper to land. These will be Trigger number 1(base) and 2(LZ).

Now just before the base and LZ triggers make 2 more triggers (these will be your slowdown triggers). Trigger number 3 Base slowdown and number 4 LZ slowdown

Now your Trigger list should look like:

1 Base
2 LZ
3 Slowdown Base
4 Slowdown LZ

Now Place your chopper on the base waypoint (0.0)

Right that is the map and triggers sorted we will do the Events. It is easier if you name you events so you know which event does what.

This first even will tell your chopper to land at both Base and LZ triggers

Event 0 : Chopper Landings
Reset after 45 seconds

IF trigger

SSN (your choppers SSN number) is within area 1 or
SSN is within area 2

Then trigger

Change SSN (chopper) AI : Patrol speed = 0 km/h
Change SSN (chopper) AI : Combat speed 0 km/h
Change (chopper) AI : AI state to land
Change SSN (chopper) AI : Stop using waypoint Z
Reset event 3

Now for the Base takeoff

Event 1 Takeoff Base

Reset after 60 seconds
Delay event 20 seconds

If trigger

SSN (chopper) is within area 1

Then trgger

Redirect SSN (chopper) to waypoint 1.1
Change SSN (chopper) AI : patrol speed = 40 km/h
Change SSN (chopper) AI : combat speed = 40 km/h
Change SSN (chopper) AI : AI state to follow waypoint
Change SSN (chopper) AI : use waypoint Z

The LZ takeoff is the same

Event 2 : Takeoff LZ

If trigger

SSN (Chopper) is within area 2
Redirect SSN (chopper) to nearest waypoint
Change SSN (chopper) AI : patrol speed = 40 km/h
Change SSN (chopper) AI : combat speed = 40 km/h
Change SSN (chopper) AI : AI state to follow waypoint
Change SSN (chopper) AI : use waypoint Z


Now to make yor chopper slowdown before it lands

Event 3 : Slowdown

If trigger

SSN (chopper) is within area 3 or
SSN (Chopper) is within area 4

Then trigger

Change SSN (chopper) AI : patrol speed 25 km/h

Change SSN (chopper) AI : combat speed 25 km/h
Change SSN (chopper) AI : AI state to follow waypoint
Change SSN (chopper) AI : use waypoint Z


You can change the speeds to whatever suits your map or needs.
The delay times can be changed but be warned they can upset the events if you set them too high.

This is an exact copy of the Event List I use for my choppers so I know it works, you just need to make sure you put the area triggers in the correct places and number them correctly.

I hope this has helped you all get out of the holes you have dug yourselves trying to figure it all out.

We have a 24/7 S&D BHD server and our web addy is

http://www.emffsquad.co.uk

No Replies

Gen.Rhyno*EMFF* - 4-27-2003 at 01:52 AM

C'mon everyone give me some feedback at leaste. Let me know if it works for u.

http://www.emffsquad.co.uk

Rhyno Choppers?

Pyle - 4-27-2003 at 10:00 AM

Thank you for posting "how to" above, i setup lil bird to your specs and it works perfect. If or should i say when i use bird for map, i'd like to call em "Rhyno Choppers" if ok with you.

Anyone haveing probs with helos, do above and probs solved. Thanks again Rhyno.

Dutchman - 4-27-2003 at 02:20 PM

It works well Rhino. But for some reason my helo will take off and then land about 10 feet from way 0 before following the list. Whats that about?



Thanks
D

look at this

BADLASER - 4-27-2003 at 02:39 PM

http://www.dfbarracks.com/mapdb/index.php?action=dm&mid=2094

Gen.Rhyno*EMFF* - 4-27-2003 at 03:53 PM

Not sure what you mean by takeoff then land 10 feetr away then take off agin?? Maybe your area triggers are too big, I did notice that that can cause problems.


http://www.emffsquad.co.uk

anoshi - 4-27-2003 at 11:33 PM

I imagine that's basically the problem but I wouldn't use the words "too big" :-)

It's tough to find the right combination of reset times to area trigger sizes, while keeping the AT big enough to ensure the helo will land when it comes by again.

What I imagine is happening is that the helo is taking off within the last second or two before the landing event resets and lands as a result. As the rotors have spun up this time, the helo should take off again after the takeoff delay without any hassles (with regard to landing event reset time).

The best way to get around this is to use manual resets on your landing events, or even all of your events for that matter. The demo didn't support manual resets, so for me, old habits are dying hard but I'm slowly making the change to manually called resets and it's solving a lot of the niggly problems.

Thanks for your post Rhyno, would you like to add this as a downloadable .mis file in the "BHD Vehicle Tutorials" thread?

Gen.Rhyno*EMFF* - 4-28-2003 at 09:21 AM

Anoshi, looks like you might of hit the nail right on the head. I will admit that I did use alot of advice from others in the forum and found some of their events had to be messed about with a bit but I managed to find a way of doing it that suited me.

I will have to have a go at the MANUAL resets that you said about and see if i can do it that way.

I would upload the mis file but have no glue how to do it lol.


http://www.emffsquad.co.uk

lol

SuicideUK - 4-28-2003 at 09:17 PM

Quote:
Originally posted by Gen.Rhyno*EMFF*
C'mon everyone give me some feedback at leaste. Let me know if it works for u.

http://www.emffsquad.co.uk


Lol, after weeks having strained my brain trying various combinations, seeing some work on a limited version of what i am trying to do, i decided to give up on helo's for a bit and grow back some hair!!

Will try your solution soon and post back results, thanks for posting the info.

helos land and fly

alphamech - 5-24-2003 at 01:40 PM

ive tried ur advise several times to no avail.ilike making maps and want tocommit myselfto doin a good job.so my question i guess is y r u puttin 1st waypoint as base?along with trigger? whatis the reset for/?and delay?so far i have 6 waypoints. 4 triggers and can only take from 0 and land at 5.then it shuts off . if i could send u a copy of whay i have mabea u could help.guess i have more than 1 question sorry lol.

anoshi - 5-24-2003 at 03:05 PM

reset: is used to make an event triggerable again. You can have this done automatically by using the checkbox and a number value in seconds, or another event can be used to reset events. This manual reset method is best used for looping events which occur at irregular times, but if you're dealing with a timed loop you can use the automatic method described earlier. When you're confident enough with the event coding, you should try to use manual resets only, although there are still times when automatic resets are vital.

delay: is used to stop an event from occurring the moment it's IF statements are triggered. When the IF section equates to true, a delay time you specify for the event is enforced before the THEN commands of the event are executed.

BHD: Rhyno tut .mis...

Pyle - 5-27-2003 at 06:25 PM

I submitted a map called "Solo Rhyno", a single Blackhawk flyin Gen Rhyno's setup.
The zip file included an .mis and .bms files. I named map after Rhyno, cool huh.
If you open .mis file in BHD MED, it is setup with colors marking base, lz, area triggers and waypoints.
Zip include a readme that i hope helped
guide peeps to setup 2nd helo. If the powers that be feel it is informitive enough to help others, maybe it can be be added with other "tut's".

I am not takeing credit for helo flight, that goes to Gen Rhyno, all i did is what he posted above and it works.

be our guest

anoshi - 5-28-2003 at 01:10 AM

Feel free to add a link to your map in the "BHD Vehicle Tutorials" thread in this forum.

Here what I made, hope it helps..

Sword - 5-28-2003 at 02:01 AM

I have made a set of instructions that make black hawks tak off and land. This will repeat aslong as a player enters the takeoff area. I hope this helps everyone make some cool maps...

Here is the link:
ExampleSet

The Zip file contains both BMS and MIS files so you can play it and edit the map to see how it works.

Also there is a word document the has pictures and instruction. hope it helps...

Hope everyone finds this usefull...

Also please add your comments to my map so I know if it helped anyone... Thanks

Sword.

Many Thanx

MajGenKrull - 5-31-2003 at 01:05 AM

:D
Quote:

I have struggled with helos for a long time to make them work, read many word docs posted, the way you explain it with anoshi, made all sense to me and it works great.
]KruLL

KRULL

Choppers Landing and Take Off

southern outlaw - 3-15-2005 at 01:57 PM

I need one to work in mp maps,sp maps no prob. One that works with events an area triggers if someone knows of one plz let me know thanks. :P

7>Snake - 3-15-2005 at 09:27 PM

Read the vehicle tutorial post found above in this section.

freaky - 8-16-2007 at 09:12 PM

Can anyone make picturs like this...

I have read the text up there aboute how to make choppers fly and land....

When i read how to make vihecles drive, i checked out this link:

http://www.dfbarracks.com/mapdb/index.php?action=dm&mid=2574


Cant anyone make the same sort of pictures of how to make choppers fly and land and how to make the shopper start when a player get in to it.? PLEASE!

freaky - 8-22-2007 at 08:45 PM

This is how my textfile of the event ended up, all thoe the shopper doesnt land at all, it cirkels one time then it stops at the same location where it started and hovers.


Quote:

// Event List for D:\NovaLogic\Delta Force Black Hawk Down\peking.mis, saved on 8/22/2007, 12:12





Event 0: Event 0 chopperlandings

Reset after 45 seconds

Triggers:

SSN 975 is within area 1 and
SSN 975 is within area 2
Actions:

Change SSN 975 AI : patrol speed = 0 km/h
Change SSN 975 AI : combat speed = 0 km/h
Change SSN 975 AI : AI state to Land
Change SSN 975 AI : stop using waypoint Z
Reset Event 0

Event 1: Event 1 basetakeoff

Reset after 60 seconds

Delay event 20 seconds

Triggers:

SSN 975 is within area 1
Actions:

Redirect SSN 975 to waypoint 1-1
Change SSN 975 AI : patrol speed = 40 km/h
Change SSN 975 AI : combat speed = 40 km/h
Change SSN 975 AI : AI state to Follow Waypoint
Change SSN 975 AI : use waypoint Z

Event 2: Event 2 LZtakeoff

Reset after 60 seconds

Delay event 20 seconds

Triggers:

SSN 975 is within area 2
Actions:

Redirect SSN 975 to waypoint 1-3
Change SSN 975 AI : patrol speed = 40 km/h
Change SSN 975 AI : combat speed = 40 km/h
Change SSN 975 AI : AI state to Follow Waypoint
Change SSN 0 AI : use waypoint Z

Event 3: Event 3 slowdown

Triggers:

SSN 975 is within area 3 and
SSN 975 is within area 4
Actions:

Change SSN 975 AI : patrol speed = 25 km/h
Change SSN 975 AI : combat speed = 25 km/h
Change SSN 975 AI : AI state to Follow Waypoint
Change SSN 975 AI : use waypoint Z


Can anyone tell me whats wrong? PLEASE