Difference between revisions of "Autopilot.tbl"

From FreeSpace Wiki
Jump to: navigation, search
m (typo)
m (updated version info)
Line 1: Line 1:
 
{{SCP_table}}
 
{{SCP_table}}
  
 
+
{{TableVersion|5211|5264}}
Revision information.. <!-- Please update this information when page is updated -->
 
::'''3.6.x branch:''' 1.23.2.17
 
::'''3.7 branch:''' 1.40
 
  
  
Line 15: Line 12:
  
 
==Table Contents==
 
==Table Contents==
{{Table36|
+
{{Table3610|
 
*Table works only with new builds}}
 
*Table works only with new builds}}
  
  
 
===$Link Distance:===
 
===$Link Distance:===
{{Table36|
+
{{Table3610|
 
*Defines the maximum distance for autopilot link
 
*Defines the maximum distance for autopilot link
 
*Syntax: '''''Integer'''''}}
 
*Syntax: '''''Integer'''''}}
Line 26: Line 23:
  
 
===+No_Cutscene_Bars===
 
===+No_Cutscene_Bars===
{{Table36|
+
{{Table3610|
 
*Turns the cutscene bars off for the autopilot duration}}
 
*Turns the cutscene bars off for the autopilot duration}}
  
 +
 +
===+No_Autopilot_Interrupt===
 +
{{Table3610|
 +
*Forces autopilot to ignore interrupts}}
  
 
===Events===
 
===Events===
{{Table36|
+
{{Table3610|
 
*Table allows for setting both message and sound file for certain events
 
*Table allows for setting both message and sound file for certain events
 
*Allowed events:
 
*Allowed events:

Revision as of 15:16, 14 June 2009

This feature requires FreeSpace Open

Revision information.....

FSO Revision: 5211
Note: Please update the version when the page is updated. If your edit had nothing to do with new code entries then please do not edit the version



Autopilot.tbl is used to define the autopilot behavior for a mod. This table is not found in the retail game.

General Structure

  • Table consists of autopilot section
  • Starts with #Autopilot
  • Ends with #END

Table Contents

FS2 Open 3.6.10:
  • Table works only with new builds


$Link Distance:

FS2 Open 3.6.10:
  • Defines the maximum distance for autopilot link
  • Syntax: Integer


+No_Cutscene_Bars

FS2 Open 3.6.10:
  • Turns the cutscene bars off for the autopilot duration


+No_Autopilot_Interrupt

FS2 Open 3.6.10:
  • Forces autopilot to ignore interrupts

Events

FS2 Open 3.6.10:
  • Table allows for setting both message and sound file for certain events
  • Allowed events:
$No Nav Selected:
  • Triggered if no navpoint has been selected when autopilot is activated
$Gliding:
  • Triggered if autopilot is activated while in glide mode
$Too Close:
  • Triggered if selected navpoint is too close when autopilot is activated
$Hostiles:
  • Triggered if hostiles are present when autopilot is activated
$Linked:
  • Triggered if autopilot is activated when link is active
$Hazard:
  • ?
  • For each defined event both message and sound file has to be set
  • +Msg:
    • Defines the message displayed on screen
    • Syntax: String
  • +Snd File:
    • Defines the sound played
    • Syntax: String, has to include file extension


Example

#Autopilot

$Link Distance: 100

$No Nav Selected:
   +Msg: none
   +Snd File: none.wav

#END