Forcing a Transport to land
Moderator: Moderators
- wishihadaname
- Captain

- Posts: 493
- Joined: Fri Dec 28, 2007 2:10 pm
- Projects :: The Corellian Resistance
- Location: Look to your left.... no, your other left....
Forcing a Transport to land
Again, sorry for spamming the forums with questions but all i've been doing for the past two days is modding and i've reached yet another impass. Does anyone know how to make transports land? I know it can be done, i've seen it in the Geonosis Spire conversion map and in the campaign. The land hintnode doesn't seem to do anything.
-
THEWULFMAN
- Space Ranger
- Posts: 5557
- Joined: Tue Aug 17, 2010 3:30 pm
- Projects :: Evolved 2
- Location: Columbus, Ohio
- Contact:
Re: Forcing a Transport to land
I think you need to set up FLYER SPLINES to the hint nodes, I'm not sure.
Last edited by THEWULFMAN on Wed Aug 29, 2012 7:49 pm, edited 1 time in total.
- Fiodis
- Master of the Force

- Posts: 4145
- Joined: Wed Nov 12, 2008 9:27 pm
- Projects :: Rannoch + Tientia + Tools Programming
Re: Forcing a Transport to land
Transports land in stock campaigns as well - take a look at the Kamino campaign script for an example. It uses the line EntityFlyerInitAsLanded. I think that may be how Mav got AI to land in his Space Mon Cal, as well.
- wishihadaname
- Captain

- Posts: 493
- Joined: Fri Dec 28, 2007 2:10 pm
- Projects :: The Corellian Resistance
- Location: Look to your left.... no, your other left....
Re: Forcing a Transport to land
Tried both of those methods but nothing happend. The flyer just ignores the hintnodes.
- DarthD.U.C.K.
- Master of the Force

- Posts: 6027
- Joined: Wed Sep 27, 2006 11:05 am
- Location: Duckburg, Germany
Re: Forcing a Transport to land
the hintnodes dont work as far as i know. maybe theres something else that make stme land in campaign..or they are just props animated in ze...
- SAMofBIA
- Major General

- Posts: 649
- Joined: Tue Jun 15, 2010 3:38 pm
- Projects :: Nothing....nothing at all.
- xbox live or psn: No gamertag set
- Location: MIA and not stopping in often anymore.
Re: Forcing a Transport to land
im pretty sure that every transport that lands in stock is animated in ZE
- Fiodis
- Master of the Force

- Posts: 4145
- Joined: Wed Nov 12, 2008 9:27 pm
- Projects :: Rannoch + Tientia + Tools Programming
Re: Forcing a Transport to land
I don't see any lines referencing ZE animations in the stock campaign luas where transports land. I'm certain it's related to the lines EntityFlyerTakeOff and EntityFlyerInitAsLanded. I'll try a few tests of them tomorrow, when I no longer need to study for my US History midterm. 
- wishihadaname
- Captain

- Posts: 493
- Joined: Fri Dec 28, 2007 2:10 pm
- Projects :: The Corellian Resistance
- Location: Look to your left.... no, your other left....
Re: Forcing a Transport to land
I'll save you the trouble, neither of those lines do anything, i've tested it out. If you look at the Deathstar campaign script, it actually looks like the deigners animated the vehicle spawn and then use the EntityFlyerInitAsLanded("trans01") line to make the craft switch from flying to landing mode as it moved along its animation. The animation was broken up into three parts that are set off by regions through which the player runs as he moves to the hanger, the first two regions are for approach, the last one takes exactly as long as the landing wing foldup animation for the troop transport and has it imitate a landing. This won't work for my mod so I think i'll jus replace the transport with a wing of TIE bombers, that should shake things up a bit.
- Sky_216
- Droid Pilot Assassin

- Posts: 2086
- Joined: Mon Feb 13, 2006 3:28 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: Forcing a Transport to land
Look at the maps in ZE then, they're flyers with a few odf tricks added. Can use them for all kind of tricks, including strafing gunships and moving platforms you can stand on.Fiodis wrote:I don't see any lines referencing ZE animations in the stock campaign luas where transports land. I'm certain it's related to the lines EntityFlyerTakeOff and EntityFlyerInitAsLanded. I'll try a few tests of them tomorrow, when I no longer need to study for my US History midterm.
Interested in this too for a map with LAATs, got a few ideas but need a way to check if a flyer has an AI or human pilot in 1st position......
-
THEWULFMAN
- Space Ranger
- Posts: 5557
- Joined: Tue Aug 17, 2010 3:30 pm
- Projects :: Evolved 2
- Location: Columbus, Ohio
- Contact:
Re: Forcing a Transport to land
tho its doubtfull he would tell you, you could ask mav how he did it, he can do pretty much anything with a lua script, he could turn a duck into a bear that eats your head.
- Jendo7
- Sith

- Posts: 1304
- Joined: Wed Apr 01, 2009 6:37 pm
- Location: Cambridge, England.
- Contact:
Re: Forcing a Transport to land
This question has been asked ad infinitum, and when I asked, the answer was a resounding no:
Landing flyers in land maps
... would be good though!
Landing flyers in land maps
... would be good though!
- Sky_216
- Droid Pilot Assassin

- Posts: 2086
- Joined: Mon Feb 13, 2006 3:28 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: Forcing a Transport to land
This is talking about through lua rather than splines or hintnodes though.....
idk, is there any lua command/group of commands to check when a flyer enters a region?
idk, is there any lua command/group of commands to check when a flyer enters a region?
- Firefang
- Major

- Posts: 518
- Joined: Mon Nov 15, 2010 8:55 pm
- Location: California
Re: Forcing a Transport to land
Yes, there is an example in the BF2 scripting doc.Sky_216 wrote:is there any lua command/group of commands to check when a flyer enters a region?
- wishihadaname
- Captain

- Posts: 493
- Joined: Fri Dec 28, 2007 2:10 pm
- Projects :: The Corellian Resistance
- Location: Look to your left.... no, your other left....
Re: Forcing a Transport to land
It would be cool if someone could get this to work. For my part, i've decided to use a bombing run instead, its much easier to make self flying, accurate bombers and then have an AA guns that needs to be distroyed in order for them to reach their destination. Its just as fun of a gameplay mechanic as a gunship that drops flanking reinforcements albeit this requires alot less scripting.
- Sky_216
- Droid Pilot Assassin

- Posts: 2086
- Joined: Mon Feb 13, 2006 3:28 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: Forcing a Transport to land
Unless I'm very much mistaken that requires the transport to land first, which is a bit useless in this case......Firefang wrote:Yes, there is an example in the BF2 scripting doc.Sky_216 wrote:is there any lua command/group of commands to check when a flyer enters a region?
- Jendo7
- Sith

- Posts: 1304
- Joined: Wed Apr 01, 2009 6:37 pm
- Location: Cambridge, England.
- Contact:
Re: Forcing a Transport to land
I see now. Sorry, I misunderstood, as I only read the first few postsSky_216 wrote:This is talking about through lua rather than splines or hintnodes though.....
- Fiodis
- Master of the Force

- Posts: 4145
- Joined: Wed Nov 12, 2008 9:27 pm
- Projects :: Rannoch + Tientia + Tools Programming
Re: Forcing a Transport to land
Might you use OnEnterRegion and GetCharacterVehicle?
- Sky_216
- Droid Pilot Assassin

- Posts: 2086
- Joined: Mon Feb 13, 2006 3:28 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: Forcing a Transport to land
So far I've got this......
Problems are:
Firstly, need to get the actual name of the vehicle to land, not just the class. Don't think that works at the moment 'cos I keep getting an error about it.
Need a way to check if the pilot is an Ai or human, since don't want human pilots to be forced to land...
Hidden/Spoiler:
Firstly, need to get the actual name of the vehicle to land, not just the class. Don't think that works at the moment 'cos I keep getting an error about it.
Need a way to check if the pilot is an Ai or human, since don't want human pilots to be forced to land...
- DarthD.U.C.K.
- Master of the Force

- Posts: 6027
- Joined: Wed Sep 27, 2006 11:05 am
- Location: Duckburg, Germany
Re: Forcing a Transport to land
in the utapau-camapign the flyer is accesed through the vehiclespawn
in the camapign.lyr:
and in the lua:
edit: i reckon the reason for this complex setup was that originally the player was supposed to enter a gunship and fly around with it, as seen in the ingamemovie. that would explain the troopermodel in the left ballturret of the gunships flying around.
edit2: im pretty sure that maveritchell animated the transporters in ZE like pandemic did on utapau, they always fly the same path to the enemy hangar.
in the camapign.lyr:
Code: Select all
Object("LAATRider", "com_item_vehicle_spawn", -1085374665)
Object("LAATDrop01", "com_item_vehicle_spawn", 1354376034)Code: Select all
function Helpers()
SetProperty("LAATDrop01", "MaxHealth", 1250)
SetProperty("LAATDrop01", "CurHealth", 1250)
...
EntityFlyerTakeOff("LAATDrop01")
EntityFlyerTakeOff("LAATDrop02")
EntityFlyerInitAsLanded("LAATAttack")
EntityFlyerInitAsLanded("LAATRider")
...
EntityFlyerTakeOff("LAATDrop01")
EntityFlyerTakeOff("LAATDrop02")
endedit2: im pretty sure that maveritchell animated the transporters in ZE like pandemic did on utapau, they always fly the same path to the enemy hangar.
