Jump to content
Sign in to follow this  
maiochine

how to stop C130 from taking off automatically

Recommended Posts

Hi all !

I am building a mission in the OA editor where I have an AI C130 named "halo" on the parking area with ENGINE OFF, that when everybody is on board I will give it a radio trigger "HALO" and the C130 will turn the eninges on, taxi to the runway,, takeoff and fly us to a specific waypoint and then returns to base and land.

Could you please tell me how can I make this happen ? :)

Many thanks

Share this post


Link to post
Share on other sites

planeOne setFuel 0;

planeOne setFuel 1;

Is the best way of engines on/off

planeOne landAt 1;

* 0 = Airport NorthWest

* 1 = Airport SouthEast

Is how to land at airports.

edit - these are codes for Takistan - you need different ones for the other islands.

Edited by PELHAM

Share this post


Link to post
Share on other sites

You can also try putting this in the init

If the C130 is named Plane1 for example

dostop Plane1

And then with your trigger to have it take off, make it

Plane1 dofollow Plan1

Share this post


Link to post
Share on other sites

@HavocDemon:

I inserted

dostop Plane1
in the init but nothing happened it still goes where it wants.

what is "Plan1" ?

@PELHAM: where do I have to place the scripts you gave me ? sorry I'm still a newbe :P

Thanks

Edited by maiochine

Share this post


Link to post
Share on other sites

create an object infront of the plane via trigger, it will cause it to stop, the object can be anthing but I use the cone. whenever you wish it to take off, delete the object via the trigger.

Share this post


Link to post
Share on other sites

@PELHAM: where do I have to place the scripts you gave me ? sorry I'm still a newbe :P

Thanks

Sorry for the late reply - very busy this month.

You need to name your aircraft something - eg. plane1 or planeOne for these scripts to work. Double click on it in the editor to open the menu.

You can put them in triggers:

Cond: planeOne in thisList

On Act: one of the codes above

In the init/initialization line of the aircraft.

Or, use them in sqf scripts - Search for Mr Murray's Editing Guide. That will teach you how.

I worked on this in the Zargabad map for someone else - see this:

http://forums.bistudio.com/showthread.php?t=106943

It has the door animations too.

Edited by PELHAM

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  

×