HU/Element/Light

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

A light osztály a színezett 3D-s lámpákat jelenti a GTA-világban. Léteznek különböző típusú fények, mint például a pontfény, reflektorfény, sötétfény.

Az osztály elemtípusa a "light".

[[{{{image}}}|link=|]] Megjegyzés: Az XML szintaxis még nincs befejezve, de bemutatja, hogy mi lenne, ha már befejezett lenne.

XML szintaxis

<light posX="" posY="" posZ="" type="" radius="" color="" dirX="" dirY="" dirZ="" shadows="" />

Kötelező paraméterek

  • lightType: Egy egész szám, amely a létrehozandó fény típusát jelenti.
    • 0: Point light, which illuminates surroundings evenly across the light radius.
    • 1: Spot light, which illuminates the direction of the light defined by dirX, dirY and dirZ.
    • 2: Dark light, which darkens its surrounding elements to full black.
  • posX: A floating point number representing the X coordinate on the map.
  • posY: A floating point number representing the Y coordinate on the map.
  • posZ: A floating point number representing the Z coordinate on the map.

Tetszőleges paraméterek

Megjegyzés: Amikor tetszőleges paramétereket használ, előfordulhat, hogy az összes paramétert meg kell adnia, mielőtt egyet is használna. További információkért látogassa meg a tetszőleges paraméterek oldalt.

  • radius: Egy lebegőpontos szám jelzi a fény sugarát.
  • color: The color of the light in HTML style format #RRGGBB, defaults to black (invisible) if not specified.
  • dirX: A floating point number representing the light direction's X coordinate on the map.
  • dirY: A floating point number representing the light direction's Y coordinate on the map.
  • dirZ: A floating point number representing the light direction's Z coordinate on the map.
  • shadows: A boolean representing whether or not does the light cast shadows.

Related scripting functions

Fordította

2018.12.08. Surge