Element/Pickup: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
(You're supposed to translate the page that starts with /HU/)
Line 1: Line 1:
__NOTOC__
__NOTOC__
A pickuposztály a GTA-világban a fegyver, élet, töltény pickupokat jelenti. A pickupokat a játékosok vehetik fel, amikor keresztül haladnak rajta. A játékosok nem kapnak több életet vagy páncélt, ha már az életük, páncéljük teljesen tele van.
The pickup class represents weapon, health, or armor pickups in the GTA world. Pickups can be picked up by players when they are walked over. Players will not be given health or armor pickups if their health or armor is already full.


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


==XML szintaxis==
==XML syntax==
<syntaxhighlight lang="xml">
<syntaxhighlight lang="xml">
<pickup posX="" posY="" posZ="" type="" amount="" respawn=""/>
<pickup posX="" posY="" posZ="" type="" amount="" respawn=""/>
</syntaxhighlight>
</syntaxhighlight>


===Kötelező paraméterek===
===Required Attributes===
* '''posX''': A pickup X koordinátáját ábrázoló lebegőpontos szám.
* '''posX''': A float representing the X position of the pickup.
* '''posY''': A pickup Y koordinátáját ábrázoló lebegőpontos szám.
* '''posY''': A float representing the Y position of the pickup.
* '''posZ''': A pickup Z koordinátáját ábrázoló lebegőpontos szám.
* '''posZ''': A float representing the Z position of the pickup.
* '''type''': A pickup típusát jelző string. Ez lehet "élet", "páncél", vagy a pickup [[Weapon|fegyver ID-jét]] jelző egész szám.
* '''type''': A string indicating the type of the pickup. This can either be "health", "armor", or an integer representing the [[Weapon|weapon ID]] of the pickup..


===Tetszőleges paraméterek===
===Optional Attributes===
* '''amount''': A pickup mennyiségét jelző egész szám. Az életnél és a páncélnál ez a visszatöltendő élet vagy páncél számát jelenti. A fegyvereknél ez a lőszer mennyiségét jelenti.
* '''amount''': An integer representing a the amount in a pickup. For health or armor, this represents the number of hit points for the pickup. For weapons, this represents the amount of ammo
* '''respawn''': Az ezredmásodpercet jelző egész szám, míg a pickup újra megjelenik miután már felvették (alapértelmezett: 30000).
* '''respawn''': An integer representing the number of milliseconds until the pickup reappears after it has been picked up (default: 30000).


==Related scripting functions==
==Related scripting functions==
{{Pickup functions hu}}
{{Pickup functions}}
[[Category:Element Types]]
[[Category:Element Types]]
[[hu:Element/Pickup]]
==Fordította==
'''2018.12.06.''' <font size="3">'''[https://wiki.multitheftauto.com/wiki/User:Surge Surge]'''</font>

Revision as of 19:50, 6 December 2018

The pickup class represents weapon, health, or armor pickups in the GTA world. Pickups can be picked up by players when they are walked over. Players will not be given health or armor pickups if their health or armor is already full.

The element type of this class is "pickup".

XML syntax

<pickup posX="" posY="" posZ="" type="" amount="" respawn=""/>

Required Attributes

  • posX: A float representing the X position of the pickup.
  • posY: A float representing the Y position of the pickup.
  • posZ: A float representing the Z position of the pickup.
  • type: A string indicating the type of the pickup. This can either be "health", "armor", or an integer representing the weapon ID of the pickup..

Optional Attributes

  • amount: An integer representing a the amount in a pickup. For health or armor, this represents the number of hit points for the pickup. For weapons, this represents the amount of ammo
  • respawn: An integer representing the number of milliseconds until the pickup reappears after it has been picked up (default: 30000).

Related scripting functions