HU/Element/Vehicle: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ The vehicle class represents vehicles in the GTA world. Vehicles can be occupied and controlled by players. The element type of this class is '''"vehicle"'''. ==XM...")
 
m (Добавление языков)
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
__NOTOC__
__NOTOC__
The vehicle class represents vehicles in the GTA world. Vehicles can be occupied and controlled by players.
A járműosztály a GTA-világban a járműveket jelenti. A járműveket a játákosok irányíhatják és birtokolhatják.


The element type of this class is '''"vehicle"'''.
Az osztály elemtípusa a '''"vehicle"'''.


==XML syntax==
==XML szintaxis==
<syntaxhighlight lang="xml">
<syntaxhighlight lang="xml">
<vehicle model="" posX="" posY="" posZ="" rotX="" rotY="" rotZ="" color="" upgrades="" paintjob="" plate="" turretX="" turretY="" health="" sirens="" landingGearDown="" specialState="" locked="" interior="" dimension="" frozen=""/>
<vehicle model="" posX="" posY="" posZ="" rotX="" rotY="" rotZ="" color="" upgrades="" paintjob="" plate="" turretX="" turretY="" health="" sirens="" landingGearDown="" specialState="" locked="" interior="" dimension="" frozen=""/>
</syntaxhighlight>
</syntaxhighlight>


===Required Attributes===
===Kötelező paraméterek===
* '''model''': The [[Vehicle IDs|vehicle ID]] of the vehicle being created.
* '''model''': A létrehozandó [[Vehicle IDs|jármű ID-je]].
* '''posX''': A float representing the X position of the vehicle.
* '''posX''': A jármű X koordinátáját ábrázoló lebegőpontos szám.
* '''posY''': A float representing the Y position of the vehicle.
* '''posY''': A jármű Y koordinátáját ábrázoló lebegőpontos szám.
* '''posZ''': A float representing the Z position of the vehicle.
* '''posZ''': A jármű Z koordinátáját ábrázoló lebegőpontos szám.


===Optional Attributes===
===Tetszőleges paraméterek===
* '''rotX''': A float representing the X rotation of the vehicle.
* '''rotX''': A jármű X koordinátáján lévő forgatást ábrázoló lebegőpontos szám.
* '''rotY''': A float representing the Y rotation of the vehicle.
* '''rotY''': A jármű Y koordinátáján lévő forgatást ábrázoló lebegőpontos szám.
* '''rotZ''': A float representing the Z rotation of the vehicle.
* '''rotZ''': A jármű Z koordinátáján lévő forgatást ábrázoló lebegőpontos szám.
* '''color''': An integer indicating the vehicle's [[Vehicle Colors|color(s)]] (seperated by commas).
* '''color''': A jármű(vek) [[Vehicle Colors|színét]] jelző egész szám (vesszővel elválasztva).
* '''upgrades''': An integer representing the vehicle's mod upgrade(s) (seperated by commas), defined in San Andreas\data\maps\veh_mods\veh_mods.ide
* '''upgrades''': Egy egész szám ábrázolja a jármű fejlesztéseit (vesszővel elválasztva), defined in San Andreas\data\maps\veh_mods\veh_mods.ide
* '''paintjob''': An integer indicating the vehicle's paint job (only works on certain vehicles).
* '''paintjob''': Egy egész szám ábrázolja a jármű paintjob-ját (csak bizonyos járműveken működik).
* '''plate''': A set of up to 8 characters that will be shown on the vehicle's license plate.
* '''plate''': Legfeljebb 8 karakterből álló szövegrész, amely a jármű rendszámán jelenik meg.
* '''turretX''': the vehicle's turret's rotation around the Z axis, in radians. Relative to the vehicle's rotation, i.e. turretX=0 will always make the turret point in the same direction as the vehicle.
* '''turretX''': the vehicle's turret's rotation around the Z axis, in radians. Relative to the vehicle's rotation, i.e. turretX=0 will always make the turret point in the same direction as the vehicle.
* '''turretY''': the vehicle's turret's rotation around the X axis, in radians. 0 means horizontal, positive values will make it point up and negative values point it down.
* '''turretY''': the vehicle's turret's rotation around the X axis, in radians. 0 means horizontal, positive values will make it point up and negative values point it down.
* '''health''': the vehicle's health. A value of 1000 means completely healthy, although higher values are allowed.
* '''health''': a jármű élete. Az 1000 érték azt jelenti, hogy a járműnek teljes az életereje, ezenfelül magasabb értékek is megengedettek.
* '''sirens''': whether or not the vehicle's sirens are on (e.g. police cars and ambulances). Possible values are "true" and "false".
* '''sirens''': a jármű szirénája be van-e kapcsolva (e.g. rendőrautók és mentők). Lehetséges értékek "true" és "false".
* '''landingGearDown''': whether or not the vehicle's landing gear is down (only applicable to planes). Possible values are "true" and "false".
* '''landingGearDown''': a jármű futóműve levan-e engedve (csak a repülőgépekre alkalmazható). Lehetséges értékek "true" és "false".
* '''specialState''': the vehicle's adjustable property number.
* '''specialState''': a jármű szabályozható tulajdonságának a száma
* '''locked''': whether or not the vehicle's doors are locked. "true" or "false".
* '''locked''': a jármű ajtajai zárva vannak-e. "true" vagy "false".
* '''interior''': the interior number of the vehicle
* '''interior''': a jármű interiorjának a száma
* '''dimension''': the dimension number of the vehicle
* '''dimension''': a jármű dimenziójának a száma
{{New feature|3.0110|1.1|
{{New feature|3.0110|1.1|
* '''frozen''': A bool indicating whether the vehicle should be capable of moving
* '''frozen''': Egy igaz/hamis érték jelzi, hogy a jármű mozgatható-e
}}
}}


==Related scripting functions==
==Related scripting functions==
{{Vehicle functions}}
{{Vehicle functions hu}}
[[Category:Element Types]]
[[Category:Element Types]]


[[en:Element/Vehicle]]
[[en:Element/Vehicle]]
[[ru:Element/Vehicle]]
[[hu:Element/Vehicle]]
[[it:Elemento/Veicolo]]
[[it:Elemento/Veicolo]]
==Fordította==
'''2018.12.06.''' <font size="3">'''[https://wiki.multitheftauto.com/wiki/User:Surge Surge]'''</font>

Latest revision as of 20:31, 14 April 2021

A járműosztály a GTA-világban a járműveket jelenti. A járműveket a játákosok irányíhatják és birtokolhatják.

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

XML szintaxis

<vehicle model="" posX="" posY="" posZ="" rotX="" rotY="" rotZ="" color="" upgrades="" paintjob="" plate="" turretX="" turretY="" health="" sirens="" landingGearDown="" specialState="" locked="" interior="" dimension="" frozen=""/>

Kötelező paraméterek

  • model: A létrehozandó jármű ID-je.
  • posX: A jármű X koordinátáját ábrázoló lebegőpontos szám.
  • posY: A jármű Y koordinátáját ábrázoló lebegőpontos szám.
  • posZ: A jármű Z koordinátáját ábrázoló lebegőpontos szám.

Tetszőleges paraméterek

  • rotX: A jármű X koordinátáján lévő forgatást ábrázoló lebegőpontos szám.
  • rotY: A jármű Y koordinátáján lévő forgatást ábrázoló lebegőpontos szám.
  • rotZ: A jármű Z koordinátáján lévő forgatást ábrázoló lebegőpontos szám.
  • color: A jármű(vek) színét jelző egész szám (vesszővel elválasztva).
  • upgrades: Egy egész szám ábrázolja a jármű fejlesztéseit (vesszővel elválasztva), defined in San Andreas\data\maps\veh_mods\veh_mods.ide
  • paintjob: Egy egész szám ábrázolja a jármű paintjob-ját (csak bizonyos járműveken működik).
  • plate: Legfeljebb 8 karakterből álló szövegrész, amely a jármű rendszámán jelenik meg.
  • turretX: the vehicle's turret's rotation around the Z axis, in radians. Relative to the vehicle's rotation, i.e. turretX=0 will always make the turret point in the same direction as the vehicle.
  • turretY: the vehicle's turret's rotation around the X axis, in radians. 0 means horizontal, positive values will make it point up and negative values point it down.
  • health: a jármű élete. Az 1000 érték azt jelenti, hogy a járműnek teljes az életereje, ezenfelül magasabb értékek is megengedettek.
  • sirens: a jármű szirénája be van-e kapcsolva (e.g. rendőrautók és mentők). Lehetséges értékek "true" és "false".
  • landingGearDown: a jármű futóműve levan-e engedve (csak a repülőgépekre alkalmazható). Lehetséges értékek "true" és "false".
  • specialState: a jármű szabályozható tulajdonságának a száma
  • locked: a jármű ajtajai zárva vannak-e. "true" vagy "false".
  • interior: a jármű interiorjának a száma
  • dimension: a jármű dimenziójának a száma
  • frozen: Egy igaz/hamis érték jelzi, hogy a jármű mozgatható-e

Related scripting functions

BEFORE VERSION 1.5.6 :
BEFORE VERSION 1.5.6 :

Fordította

2018.12.06. Surge