HU/getBlipVisibleDistance: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
 (Created page with "{{Server client function}} __NOTOC__ This function will tell you what visible distance a blip has.   ==Szintaxis==  <syntaxhighlight lang="lua">float getBlipVisibleDistance (...")  | 
				|||
| (12 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{  | {{Shared function hu}}  | ||
__NOTOC__  | __NOTOC__  | ||
Ez a funkció megmondja, hogy milyen látható távolsága van a blipnek.    | |||
==Szintaxis==    | ==Szintaxis==    | ||
| Line 7: | Line 7: | ||
{{OOP||[[blip]]:getVisibleDistance|visibleDistance|setBlipVisibleDistance}}  | {{OOP||[[blip]]:getVisibleDistance|visibleDistance|setBlipVisibleDistance}}  | ||
===Kötelező argumentumok===    | ===Kötelező argumentumok===    | ||
*'''theBlip:'''   | *'''theBlip:''' a blip, melyeknek a látható távolságát szeretné megkapni.  | ||
===Visszaadott érték===  | ===Visszaadott érték===  | ||
Visszaad egy ''float'' értéket a blip látható távolságával, ''false'' ha a blip érvénytelen.  | |||
==Példa==    | ==Példa==    | ||
Ez a példa bemutatja a getBlipVisibleDistance alapvető funkcióit  | |||
<syntaxhighlight lang="lua">  | <syntaxhighlight lang="lua">  | ||
local blip = createBlip(0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1000)  | local blip = createBlip(0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1000)  | ||
| Line 19: | Line 19: | ||
</syntaxhighlight>  | </syntaxhighlight>  | ||
Ez a példa ötvözi az összes blip teljes látható távolságát  | |||
<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 33: | Line 33: | ||
==Lásd még==  | ==Lásd még==  | ||
{{Blip_functions}}  | {{Blip_functions hu}}  | ||
[[  | [[en:getBlipVisibleDistance]]  | ||
==Fordította==  | |||
* '''''[https://wiki.multitheftauto.com/wiki/User:Surge Surge]'''''  | |||
Latest revision as of 13:01, 21 August 2018
Ez a funkció megmondja, hogy milyen látható távolsága van a blipnek.
Szintaxis
float getBlipVisibleDistance ( blip theBlip )
OOP Syntax Help! I don't understand this!
- Method: blip:getVisibleDistance(...)
 - Variable: .visibleDistance
 - Counterpart: setBlipVisibleDistance
 
Kötelező argumentumok
- theBlip: a blip, melyeknek a látható távolságát szeretné megkapni.
 
Visszaadott érték
Visszaad egy float értéket a blip látható távolságával, false ha a blip érvénytelen.
Példa
Ez a példa bemutatja a getBlipVisibleDistance alapvető funkcióit
local blip = createBlip(0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1000)
outputDebugString("Blip visible distance: "..getBlipVisibleDistance(blip))
Ez a példa ötvözi az összes blip teljes látható távolságát
-- Retrieve a table containing all the blips that exist
local blips = getElementsByType("blip")
local distance = 0
-- Loop through the list, storing the blips visible distance with the rest.
for index, blip in ipairs(blips) do
	-- Retrieve the blip's visible distance
	distance = distance + getBlipVisibleDistance(blip) or 0 -- "or 0" just incase its false ;)
end
outputDebugString("Combined total of all blips visible distances: "..distance)
Lásd még
- HU/createBlip
 - HU/createBlipAttachedTo
 - HU/getBlipColor
 - HU/getBlipIcon
 - HU/getBlipOrdering
 - HU/getBlipSize
 - HU/getBlipVisibleDistance
 - HU/setBlipColor
 - HU/setBlipIcon
 - HU/setBlipOrdering
 - HU/setBlipSize
 - HU/setBlipVisibleDistance