Force flyer to take off?

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
fasty
1st Lieutenant
1st Lieutenant
Posts: 438
Joined: Thu Apr 15, 2010 4:17 am
Projects :: Server modding
Games I'm Playing :: SWBF2
Contact:

Force flyer to take off?

Post by fasty »

In my campaign, my character automatically enters a flyer when the map starts. Is it possible to have my ship take off automatically once he enters his ship?
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: Force flyer to take off?

Post by Locutus »

Mhh, I don't think so.
You could code the flyer as a turret and animate it in ZE. The player can shoot from the moving flyer-turret but would never be able to control it then.
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: Force flyer to take off?

Post by Fiodis »

Well, you could try fooling around with EntityFlyerInitAsLanded and EntityFlyerInitAsFlying. I think that might be how Mav did his landing AI, though I could be wrong. Examples of the use of these functions are in the Kamino campaign lua.
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Re: Force flyer to take off?

Post by FragMe! »

What you can do depends upon what your character is supposed to be at this point a pilot or a passenger. If he is a passenger then you could try using ZE animation to move it from point A to point B land it then he gets out. You would need the commands or trigger to start the animation, sorry not super lua savvy.
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: Force flyer to take off?

Post by Fiodis »

Oh, yeah, if he's a passenger then ZE animations work better. Something like:

Code: Select all

takeoff = OnCharacterEnterVehicle(
function(character, vehicle)
PlayAnimation("animationgroup")
end
)
Post Reply