Page 1 of 1
Force flyer to take off?
Posted: Wed Jun 06, 2012 2:27 am
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?
Re: Force flyer to take off?
Posted: Wed Jun 06, 2012 4:19 am
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.
Re: Force flyer to take off?
Posted: Thu Jun 07, 2012 5:13 pm
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.
Re: Force flyer to take off?
Posted: Thu Jun 07, 2012 9:14 pm
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.
Re: Force flyer to take off?
Posted: Fri Jun 08, 2012 7:35 am
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
)