Photon Documentation Repository

autorun.photon.cl_emv_airel

AirEl Client Handler.

Functions

ClientPhoton.AirEL.Apply(unitString, ent) → boolean|nilSource ☍

Apply an AirEL skin to an entity.

Parameters

  • unitStringany
  • entany

Returns

  1. boolean|nil
ClientPhoton.AirEL.ApplyTexture(mat, ent, id, unitString)Source ☍

Apply a texture to an ariel system.

Parameters

  • matany
  • entany
  • idany
  • unitStringany
ClientPhoton.AirEL.DownloadMaterial(id, unitString, ent, cback, failed)Source ☍

Download a given material and apply it to a given entity.

Parameters

  • idany
  • unitStringany
  • entany
  • cbackany
  • failedany
ClientPhoton.AirEL.FormatName(id, unitString) → stringSource ☍

Get an AirEL formatted material name.

Parameters

  • idany
  • unitStringany

Returns

  1. string
ClientPhoton.AirEL.IllumScan()Source ☍

Scan function called to set on vs off illumination for AirEL entities.

ClientPhoton.AirEL.LoadCallbackFail(error)Source ☍

Error callback function.

Parameters

  • errorany
ClientPhoton.AirEL.LoadCallbackSuccess(id, unitString, ent)Source ☍

Callback function called when a texture is done downloading.

Parameters

  • idany
  • unitStringany
  • entany
ClientPhoton.AirEL.LoadMaterial(id, unitString, ent)Source ☍

Load a material from the cache or download it if it doesn't exist.

Parameters

  • idany
  • unitStringany
  • entany
ClientPhoton.AirEL.LoadMaterialFromFile(id, unitString)Source ☍

Load a material from a file.

Parameters

  • idany
  • unitStringany
ClientPhoton.AirEL.Scan()Source ☍

Scan function called to apply materials on AirEL entities.

Tables

ClientPhoton.AirELSource ☍
ClientPhoton.AirEL.MaterialIndexSource ☍

Table for storing materials, keyed by material name.

ClientPhoton.AirEL.TranslationTableSource ☍

Translation between models and remote materials.

ClientPhoton.AirEL.TranslationTableIndexSource ☍

Translation between models and material indexes.