Flying path?
Moderator: Moderators
-
jedi_pilot
- Command Sergeant Major

- Posts: 288
- Joined: Sat Sep 15, 2007 2:09 pm
Flying path?
I have a couple of questions:
-Is there a way to make an aircraft fly on a certain path?
-Can you make the aircraft start in midair with gunners inside of it?
Thank's.
-Is there a way to make an aircraft fly on a certain path?
-Can you make the aircraft start in midair with gunners inside of it?
Thank's.
-
computergeek
- General

- Posts: 770
- Joined: Thu Jun 07, 2007 6:26 pm
- Projects :: Halo Warthog vehicle for SWBF2
- xbox live or psn: No gamertag set
- Location: Far Far away....
Re: Flying path?
For the first one- They're called flyer spline paths, read the doc for it (read the whole thing)
- Frisbeetarian
- Jedi

- Posts: 1233
- Joined: Wed Sep 12, 2007 3:13 pm
Re: Flying path?
Depends on what you actually want for the second. In actuality, I don't believe you can do exactly what you said, but if you want to just have something flying around shooting, then you could rig something. I believe you could just animate objects that consist of a ship and some auto-turrets.
-
jedi_pilot
- Command Sergeant Major

- Posts: 288
- Joined: Sat Sep 15, 2007 2:09 pm
Re: Flying path?
And what doc would that becomputergeek wrote:For the first one- They're called flyer spline paths, read the doc for it (read the whole thing)
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: Flying path?
I bet if you opened the documentation folder it would be pretty obvious, wink.jedi_pilot wrote:And what doc would that becomputergeek wrote:For the first one- They're called flyer spline paths, read the doc for it (read the whole thing)???
-
jedi_pilot
- Command Sergeant Major

- Posts: 288
- Joined: Sat Sep 15, 2007 2:09 pm
Re: Flying path?
Well, I read trough the doc. But I'm a bit confused on how you make the aircraft not playable, and how you get it to take off and fly to the spline path. The doc isn't to specific on that point
...
-
computergeek
- General

- Posts: 770
- Joined: Thu Jun 07, 2007 6:26 pm
- Projects :: Halo Warthog vehicle for SWBF2
- xbox live or psn: No gamertag set
- Location: Far Far away....
Re: Flying path?
The AI will automatically find the nearest spline path and follow it. You have to name the path "entitypath insertwhaeverhere" in ZE and then copy EXACTLY what you put in ZE into your lua like this
The different names are all individual paths. You must name the path "entitypath *" or else it will not work
Put the EnableFlyerPath after
Here's my lua for an example
Code: Select all
EnableFlyerPath("entitypath cisflyout", "entitypath repstrafe", "entity cisnocrash", "entity repfly", "entity cisstrafe", 1);Put the EnableFlyerPath after
Code: Select all
conquest:AddCommandPost(cp4)
conquest:Start()Hidden/Spoiler:
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: Flying path?
I honestly don't think you need to put them in your .lua (or at the least calling for them is redundant). In my experience, putting them in there generates an unnecessary Sev 3 error in the log and not calling them in your .lua has no effect - as long as they're named "entitypath whatevernamehere" the AI flyers will follow them.
-
computergeek
- General

- Posts: 770
- Joined: Thu Jun 07, 2007 6:26 pm
- Projects :: Halo Warthog vehicle for SWBF2
- xbox live or psn: No gamertag set
- Location: Far Far away....
Re: Flying path?
Oh, ok thanks Mav
I thought you needed to (atleast that's what the doc led me to believe)
I thought you needed to (atleast that's what the doc led me to believe)
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: Flying path?
No, you're right, that's exactly what the doc said to do. I think it's just a mistake (or like I said, maybe a redundant aspect) on the part of the devs.computergeek wrote:I thought you needed to (atleast that's what the doc led me to believe)
-
jedi_pilot
- Command Sergeant Major

- Posts: 288
- Joined: Sat Sep 15, 2007 2:09 pm
Re: Flying path?
Ok, that's what I figured
. But is there a way you can make the aircraft spawn in middair(like the campaign mission on kamino) so that the human can't fly the aircraft???
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: Flying path?
No, and those "flyers" in campaign Kamino aren't really flyers, either. They're animated turrets.
-
Aman/Pinguin
- Jedi

- Posts: 1104
- Joined: Tue Jan 30, 2007 6:04 am
- Projects :: Inactive
- Location: Germany
Re: Flying path?
Of course you can. Just make them auto piloted and place the vehicle spawns in mid air.Maveritchell wrote:No, and those "flyers" in campaign Kamino aren't really flyers, either. They're animated turrets.
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: Flying path?
They still have to take off, though, they can't just be spawned flying.Aman/Pinguin wrote:Of course you can. Just make them auto piloted and place the vehicle spawns in mid air.
-
Aman/Pinguin
- Jedi

- Posts: 1104
- Joined: Tue Jan 30, 2007 6:04 am
- Projects :: Inactive
- Location: Germany
Re: Flying path?
Well thats true, but not a problem. I used that method often.Maveritchell wrote:They still have to take off, though, they can't just be spawned flying.Aman/Pinguin wrote:Of course you can. Just make them auto piloted and place the vehicle spawns in mid air.
- 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: Flying path?
Well yeah but since they're autopiloted and you can't use them anyway just muck around with TakeOffHeight/Speed/Time so they'll just go straight forward after a second.Aman/Pinguin wrote:Well thats true, but not a problem. I used that method often.Maveritchell wrote:They still have to take off, though, they can't just be spawned flying.Aman/Pinguin wrote:Of course you can. Just make them auto piloted and place the vehicle spawns in mid air.
Oh and this thread was real useful BTW.
-
jedi_pilot
- Command Sergeant Major

- Posts: 288
- Joined: Sat Sep 15, 2007 2:09 pm
Re: Flying path?
How do you make them auto pilotedAman/Pinguin wrote:Of course you can. Just make them auto piloted and place the vehicle spawns in mid air.
-
Aman/Pinguin
- Jedi

- Posts: 1104
- Joined: Tue Jan 30, 2007 6:04 am
- Projects :: Inactive
- Location: Germany
Re: Flying path?
Put
into the ODF
Code: Select all
Pilottype = "self"-
jedi_pilot
- Command Sergeant Major

- Posts: 288
- Joined: Sat Sep 15, 2007 2:09 pm
Re: Flying path?
Ok
. Does this work with the turrets on the aircraft as well???
