HU/Element/Light: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ {{New feature/item|3.0150|1.5.0|7048| 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...")
 
m (Добавление языков)
 
(One intermediate revision by one other user not shown)
Line 4: Line 4:


Az osztály elemtípusa a '''"light"'''.}}
Az osztály elemtípusa a '''"light"'''.}}
{{Note_hu|Az XML szintaxis még nincs befejezve, de bemutatja, hogy mi lenne, ha már fejezetett lenne.}}
{{Note_hu|Az XML szintaxis még nincs befejezve, de bemutatja, hogy mi lenne, ha már befejezett lenne.}}


==XML szintaxis==
==XML szintaxis==
Line 32: Line 32:


[[en:Element/Light]]
[[en:Element/Light]]
[[ru:Element/Light]]
[[hu:Element/Light]]


==Fordította==
==Fordította==
  '''2018.12.08.''' <font size="3">'''[https://wiki.multitheftauto.com/wiki/User:Surge Surge]'''</font>
  '''2018.12.08.''' <font size="3">'''[https://wiki.multitheftauto.com/wiki/User:Surge Surge]'''</font>

Latest revision as of 18:37, 15 April 2021

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