Difference between revisions of "Scripting.tbl"

From FreeSpace Wiki
Jump to: navigation, search
m (added links to scripting.html and to new scripted hud example)
(added links to lua-users wiki and to lua reference manual)
Line 10: Line 10:
 
*'''[http://fs2source.warpcore.org/temp/scripting.html Scripting.html]'''
 
*'''[http://fs2source.warpcore.org/temp/scripting.html Scripting.html]'''
 
*'''[[Command-Line_Reference#-output_scripting|Command-Line Reference for creating scripting.html]]'''
 
*'''[[Command-Line_Reference#-output_scripting|Command-Line Reference for creating scripting.html]]'''
 +
*'''[http://lua-users.org/wiki/ Lua-Users Wiki]'''
 +
*'''[http://www.lua.org/manual/5.0/ Reference manual for Lua 5.0]'''
  
  

Revision as of 15:53, 12 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