(redirected from TsFiles)

TsFile

ThereWiki | RecentChanges | Preferences

TsFiles are ThereScript files and end with the file extension .ts
note: AconfFiles also contain ThereScript and end in .aconf

ThereScript files are plain text files that can contain and perform a variety of functions. The most prevalent use of ThereScript files are for system scripting and object control.

All objects that are freestanding have a TsFile associated with them. These types of TsFiles tend to contain a limited amount of scripting but may have the ability to contain more complex functions.

A typical developer object TsFile contains 2 main sections.

A typical developer object file looks like this.

PIECE {
  name = "object name",
  id = "DevId",
  model = "dir/modelname.model",
   modelSettings = {

     [ "material_id_1" ] = {
      colormap = "dir/colormap_1.jpg",
      lit = 1,
      twosided = 0,
     },

     [ "material_id_2" ] = {
      colormap = "dir/colormap_2.jpg",
      opacitymap = "dir/opacity.jpg",
      lit = 0,
      twosided = 0,
     },
  },
  
  sinkToGround = dropOnTop,
  layoutClass = "Structures",
}

CONTENTS
{
  { "DevId", 1 },
}


ThereWiki | RecentChanges | Preferences
This page is read-only | View other revisions
Last edited April 20, 2004 2:05 am by IanYoung (diff)
Search: