HU/setBlipVisibleDistance: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 8: | Line 8: | ||
===Kötelező argumentumok=== | ===Kötelező argumentumok=== | ||
*'''theBlip:''' | *'''theBlip:''' A blip, amelynek látható távolsága szeretné megkapni. | ||
*'''theDistance:''' The distance you want the blip to be visible for. | *'''theDistance:''' The distance you want the blip to be visible for. | ||
Revision as of 20:16, 24 July 2018
Ez a funkció beállítja a blip látható távolságát.
Szintaxis
bool setBlipVisibleDistance ( blip theBlip, float theDistance )
OOP Syntax Help! I don't understand this!
- Method: blip:setVisibleDistance(...)
- Variable: .visibleDistance
- Counterpart: getBlipVisibleDistance
Kötelező argumentumok
- theBlip: A blip, amelynek látható távolsága szeretné megkapni.
- theDistance: The distance you want the blip to be visible for.
Visszaadott érték
Returns true if successful, false otherwise.
Példa
This example will demonstrate basic functionality of setBlipVisibleDistance
local blip = createBlip(0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1000) outputDebugString("Blip visible distance: "..getBlipVisibleDistance(blip)) --1000 setBlipVisibleDistance(blip, 2000) outputDebugString("Blip visible distance: "..getBlipVisibleDistance(blip)) --2000
This example will set the visible distance of all blips to half the original value.
-- Retrieve a table containing all the blips that exist local blips = getElementsByType("blip") -- 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 and divide by 2 setBlipVisibleDistance(blip, getBlipVisibleDistance(blip) / 2) end
Lásd még
- createBlip
- createBlipAttachedTo
- getBlipColor
- getBlipIcon
- getBlipOrdering
- getBlipSize
- getBlipVisibleDistance
- setBlipColor
- setBlipIcon
- setBlipOrdering
- setBlipSize
- setBlipVisibleDistance
Fordította
- Surge