Force flyer to take off?
Moderator: Moderators
-
fasty
- 1st Lieutenant

- Posts: 438
- Joined: Thu Apr 15, 2010 4:17 am
- Projects :: Server modding
- Contact:
Force flyer to take off?
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?
- Locutus
- 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?
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.
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.
- Fiodis
- 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?
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

- Posts: 2244
- Joined: Sat May 13, 2006 12:34 am
- Projects :: Not sure keep changing my mind.
- xbox live or psn: No gamertag set
- Location: Origin name GT_FragMe
- Contact:
Re: Force flyer to take off?
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.
- Fiodis
- 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?
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
)