Difference between revisions of "Scripting.tbl"

From FreeSpace Wiki
Jump to: navigation, search
m
m (added links to scripting.html and to new scripted hud example)
Line 8: Line 8:
 
*'''[[FS2 Open Lua Scripting]]'''
 
*'''[[FS2 Open Lua Scripting]]'''
 
*'''[[Scripting API]]'''
 
*'''[[Scripting API]]'''
 +
*'''[http://fs2source.warpcore.org/temp/scripting.html Scripting.html]'''
 +
*'''[[Command-Line_Reference#-output_scripting|Command-Line Reference for creating scripting.html]]'''
 +
  
 
==General Format==
 
==General Format==
Line 30: Line 33:
  
 
==Examples==
 
==Examples==
 +
[[Script - Example HUD|Example HUD]]<br>
 
[[Script - Ship Viewer|Ship Viewer]]<br>
 
[[Script - Ship Viewer|Ship Viewer]]<br>
 
[[Script - Splash Screen|Splash Screen]]
 
[[Script - Splash Screen|Splash Screen]]
 +
  
 
[[Category:Tables]]
 
[[Category:Tables]]
 
[[Category:Scripting Examples]]
 
[[Category:Scripting Examples]]

Revision as of 15:23, 10 May 2006

This feature requires SCP


The scripting table is used for scripting special features like alternate HUDs or ship viewer into the game.

Usefull references:


General Format

  • Scripting table consist of several sections
  • All sections and most of the entries are optional
  • All sections end with #End
  • #Global Hooks
  • #State Hooks

#Global Hooks

  • $Global:
  • $Splash:
  • $GameInit:
  • $Simulation:
  • $HUD:

#State Hooks

  • $State:
    • $Hook:

Examples

Example HUD
Ship Viewer
Splash Screen