Flight package release

Search for Flight Package in the community packages tab, should consist of a script file, an extract, and two templates.
To use:
Attach the FlightTemplate to the player template you wish to enable flight on.

Settings:

  • flightEnabled : whether flight is currently enabled or not
  • fightTime : how long the player can stay in flight before auto stopping
  • flightKey : key to listen for in “OnButtonPressed” to start flying - default to not listening
  • descentKey : key to listen for in “OnButtonPressed” to stop flying - default to not listening

Functions (if you wish to control flight outside of button press):

  • StartFlying : function to start the player’s flight, takes in an optional param to specify auto stop time
  • StopFlying : function to stop the player’s flight

Demos:

3 Likes