Pilot Ship Remotely [Solved]

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
yuke5
Field Commander
Field Commander
Posts: 945
Joined: Wed Jun 29, 2011 10:42 pm
Games I'm Playing :: SWBF2 TF2 RC KOTOR
xbox live or psn: My steam is yuke5.
Location: Vermont

Pilot Ship Remotely [Solved]

Post by yuke5 »

I've just had a bit of an idea, but before I pursue much further, I just want to make sure it is possible. Can you pilot a flyer from a separate control panel, like turrets on capital ships?
Last edited by yuke5 on Sat Jul 20, 2013 6:06 pm, edited 10 times in total.
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Pilot Ship Remotely

Post by Marth8880 »

Yep; just set up the remote chair thing (from stock space) like you normally would and reference the flyer or other vehicle in the area where you'd put the turret (in the chair's instance properties in ZE). Then, put this line:

Code: Select all

PilotType = "remote"
in your vehicle's ODF under FLYERSECTION = "BODY", and you're good to go. :)
User avatar
yuke5
Field Commander
Field Commander
Posts: 945
Joined: Wed Jun 29, 2011 10:42 pm
Games I'm Playing :: SWBF2 TF2 RC KOTOR
xbox live or psn: My steam is yuke5.
Location: Vermont

Re: Pilot Ship Remotely

Post by yuke5 »

Thank you. I'm going to see if I can get this working. If I can, I think I might have something promising.
User avatar
Locutus
1st Lieutenant
1st Lieutenant
Posts: 420
Joined: Fri Jun 04, 2010 10:08 am
Projects :: Stargate Battlefront Pegasus
Location: Germany
Contact:

Re: Pilot Ship Remotely [SOLVED]

Post by Locutus »

Actually it's not that easy. At least I had some trouble with it.
It works very well for ground vehicles but with flyers I had one problem: It's easy to get in and control them but as soon as I left them mid-air (aka not landed) they exploded instantly so I could never get back in.
I tried using stuff like using SetProperty() to set the pilottype to vehicleself when I exited or EntityFlyerInitAsLanded() but that didn't work out for me.

Have you had success in remotely piloting a flyer type vehicle you exited it before?
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Pilot Ship Remotely [Solved]

Post by Fiodis »

If you check out the first version of RepSharpShooter's Battle Arena there's a spectator class that can access turrets that control little flying cameras. I've also toyed with using turrets to control little mini capital ships. It's certainly possible, but takes a bit of tweaking.
User avatar
yuke5
Field Commander
Field Commander
Posts: 945
Joined: Wed Jun 29, 2011 10:42 pm
Games I'm Playing :: SWBF2 TF2 RC KOTOR
xbox live or psn: My steam is yuke5.
Location: Vermont

Re: Pilot Ship Remotely [SOLVED]

Post by yuke5 »

Locutus wrote:Actually it's not that easy. At least I had some trouble with it.
It works very well for ground vehicles but with flyers I had one problem: It's easy to get in and control them but as soon as I left them mid-air (aka not landed) they exploded instantly so I could never get back in.
I tried using stuff like using SetProperty() to set the pilottype to vehicleself when I exited or EntityFlyerInitAsLanded() but that didn't work out for me.

Have you had success in remotely piloting a flyer type vehicle you exited it before?
Right now I'm just trying to get everything set up. I'm not worried about the player exiting the flyer and then it exploding. As a matter of fact, I WANT it to explode as soon as the player exits. I'm trying something that I think is a little over my head. I want to have the player control an unmanned frigate loaded with explosives and fly in into an enemy fleet as a campaign objective. I know that having a frigate as a flyer is possible, but for now, I'm just want to make sure I can fly a star fighter remotely before I try to tackle the frigate.

EDIT: I got it working, and there are some issues, but they aren't directly related to this topic.
Post Reply