Witam mam pytanie chcia?em podmieni? zwyk?e:
local wejscie=createMarker(-2413.41,-601.94,132.56+0.60, "arrow", 1, 255, 0, 0, 50)
na marker z ikonk? tylko nw jak bo mam takie cos:
function createCustomMarker(x, y, z, r, g, b, a, icon, size)
id = findFreeValue(customMarkers)
customMarkers[id] = {}
customMarkers[id]["marker"] = exports["pd-dynamic-light"]:createPointLight(x, y, z, r / 255, g / 255, b / 255, a / 255, size)
if not icon then icon = "marker" end
customMarkers[id]["data"] = {x=x, y=y, z=z, r=r, g=g, b=b, a=a, icon=icon, size=size}
customMarkers[id]["normal"] = createMarker(x, y, z, "cylinder", size, 0, 0, 0, 0)
setElementData(customMarkers[id]["normal"], "marker:id", id)
return customMarkers[id]["normal"], id
end
- w skrypcie z merkerami, oczywscie mam osobno i chcia?em zrb to pod ikonk?. czyli co mam podmieni? exports ? cos cos czy jak? ten local….
Je?li tylko argumenty z funkcji createCustomMarker s? odpowiednie, to tak. Analizuj, patrzysz na 1 argument co to ma by? i patrzysz co wprowadzi?e? w exporcie. Tak samo z reszt?. Ju? widz?, ?e r g b masz chyba ?le.
Nie możesz pisać nowych tematów Nie możesz odpowiadać w tematach Nie możesz zmieniać swoich postów Nie możesz usuwać swoich postów Nie możesz głosować w ankietach