HU/getBlipSize: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Server client function}}
{{Shared function hu}}
__NOTOC__
__NOTOC__


Line 9: Line 9:


===Kötelező argumentumok===  
===Kötelező argumentumok===  
*'''theBlip:''' The blip you wish to get the size of.
*'''theBlip:''' A blip, melynek méretét meg akarja kapni.


===Visszaadott érték===
===Visszaadott érték===
Returns an [[int]] indicating the size of the blip. The default value is 2. The maximum value is 25.
Visszaad egy [[int]] értéket, mely jelzi a blip méretét. Alapértelmezett érték a 2. A maximális érték a 25.


==Példa==  
==Példa==  
This example will reset the size of all blips to the default.
Ez a példa visszaállítja az összes blip méretét az alapértelmezett értékre.
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
-- Retrieve a table containing all the blips that exist
-- Retrieve a table containing all the blips that exist
Line 32: Line 32:


==Lásd még==
==Lásd még==
{{Blip_functions}}
{{Blip_functions hu}}


[[en:getBlipSize]]
[[en:getBlipSize]]


==Fordította==
==Fordította==
* Surge
* '''''[https://wiki.multitheftauto.com/wiki/User:Surge Surge]'''''

Latest revision as of 13:01, 21 August 2018


Ez a funkció megkapja a blip méretét.

Szintaxis

int getBlipSize ( blip theBlip )

OOP Syntax Help! I don't understand this!

Method: blip:getSize(...)
Variable: .size
Counterpart: setBlipSize


Kötelező argumentumok

  • theBlip: A blip, melynek méretét meg akarja kapni.

Visszaadott érték

Visszaad egy int értéket, mely jelzi a blip méretét. Alapértelmezett érték a 2. A maximális érték a 25.

Példa

Ez a példa visszaállítja az összes blip méretét az alapértelmezett értékre.

-- Retrieve a table containing all the blips that exist
blips = getElementsByType ( "blip" )
-- Loop through the list, storing the blip from the table in the variable blipValue
for blipKey, blipValue in ipairs(blips) do
	-- Retrieve the blip's size into the variable 'blipSize'
	blipSize = getBlipSize ( blipValue )
	-- If the blip's size wasn't 2 (the default size) already
	if ( blipSize ~= 2 ) then
		-- Set the blip's size to the default
		setBlipSize ( blipValue, 2 )
	end
end

Lásd még

Fordította