-------------------------------------------------------------------------------- -- Handler.......... : onInit -- Author........... : -- Description...... : -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function FPVMain.onInit ( ) -------------------------------------------------------------------------------- -- Create HUD -- hud.newTemplateInstance ( this.getUser ( ), "FPVControls", "controls" ) -- Load scene -- application.setCurrentUserScene ( "FPVScene" ) -- Enable inputs handling -- this.enableInputsHandling ( true ) -------------------------------------------------------------------------------- end --------------------------------------------------------------------------------