Jump to content

Cambiar color de un marcador


Tonyx97

Recommended Posts

Hola a todos, siempre he estado con esta duda... como puedo cambiar el color de un marcador creado desde otra funcion? ejemplo:

function marker () 
    local marker1 = createMarker ( 2794.899, -2463.6, 12.6, "cylinder", 1.5, 255, 255, 255, 150 ) 
end 
addCommandHandler ("create", marker) 
  
function changeColor () 
    setMarkerColor ( marker1, 255, 0, 0, 150 ) 
end 
addCommandHandler ("color", changeColor) 

GRACIAS POR LEER, ESPERO QUE ME AYUDEN :D

Link to comment
  
local marker1 
function marker () 
    marker1 = createMarker ( 2794.899, -2463.6, 12.6, "cylinder", 1.5, 255, 255, 255, 150 ) 
end 
addCommandHandler ("create", marker) 
  
function changeColor () 
    setMarkerColor ( marker1, 255, 0, 0, 150 ) 
end 
addCommandHandler ("color", changeColor) 

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...