Darwin Posted September 28, 2019 Share Posted September 28, 2019 hola me ayudan a que los blips solamente aparezcan cuando este cerca del marcador y no aparescan amontonados... PDS: soy nuevo en el foro Mark = { {296, -37.9, 1000.5}, {288, -108, 1000}, {294, -79, 1000}, {312, -165, 999}, {1007.83203125, -1435.0576171875, 13.546875}, {2009.0185546875, 2149.0576171875, 10.8203125}, {-2132.4541015625, 344.595703125, 35.171875}, } --Marker local Marker1 = createMarker(296, -37.9, 1000.5, "cylinder", 1.5, 250,250,0) setElementInterior (Marker1,1) setElementDimension (Marker1, 0) local Marker2 = createMarker(289, -109, 1000.5, "cylinder", 1.5, 250,250,0) setElementInterior (Marker2,6) setElementDimension (Marker2, 6) local Marker3 = createMarker(294, -80, 1000.5, "cylinder", 1.5, 250,250,0) setElementInterior (Marker3,4) setElementDimension (Marker3, 0) local Marker4 = createMarker(294, -80, 1000.5, "cylinder", 1.5, 250,250,0) setElementInterior (Marker4,4) setElementDimension (Marker4, 1) local Marker5 = createMarker(294, -80, 1000.5, "cylinder", 1.5, 250,250,0) setElementInterior (Marker5,4) setElementDimension (Marker5, 2) local Marker5 = createMarker(294, -80, 1000.5, "cylinder", 1.5, 250,250,0) setElementInterior (Marker5,4) setElementDimension (Marker5, 3) local Marker6 = createMarker(289, -109, 1000.5, "cylinder", 1.5, 250,250,0) setElementInterior (Marker6,6) setElementDimension (Marker6, 3) local Marker7 = createMarker(289, -109, 1000.5, "cylinder", 1.5, 250,250,0) setElementInterior (Marker7,6) setElementDimension (Marker7, 4) local Marker8 = createMarker(312, -165, 998.5, "cylinder", 1.5, 250,250,0) setElementInterior (Marker8,6) setElementDimension (Marker8, 0) local Marker9 = createMarker(296, -37.9, 1000.5, "cylinder", 1.5, 250,250,0) setElementInterior (Marker9,1) setElementDimension (Marker9, 1) local Marker10 = createMarker(289, -109, 1000.5, "cylinder", 1.5, 250,250,0) setElementInterior (Marker10,6) setElementDimension (Marker10, 5) --Blip createBlip( 1007.83203125, -1435.0576171875, 13.546875, 6, 0.5, 0 ,0, 0, 0, 0, 400) createBlip( 2009.0185546875, 2149.0576171875, 10.8203125, 6, 0.5, 0 ,0, 0, 0, 0, 400) createBlip( -2132.4541015625, 344.595703125, 35.171875, 6, 0.5, 0 ,0, 0, 0, 0, 400) Link to comment
DNL291 Posted September 28, 2019 Share Posted September 28, 2019 @Darwin Necesita cambiar el undécimo argumento en createBlip, donde es 400. Cámbielo a un valor más bajo de acuerdo con sus necesidades. Y ponga su código para el formato Lua la próxima vez. Haga clic en <> y pegue el código allí. Link to comment
Darwin Posted September 28, 2019 Author Share Posted September 28, 2019 y cuando en ese caso es asi localblip = createBlip( 92.50121, -165.68721, 2.59375, 23 ) en ese caso como le pongo para que aparesca cuando este cerca del marcador? @DNL291 Link to comment
DNL291 Posted September 29, 2019 Share Posted September 29, 2019 Use: setBlipVisibleDistance. Example: setBlipVisibleDistance( localblip, 100 ) @Darwin Link to comment
Darwin Posted September 29, 2019 Author Share Posted September 29, 2019 diras que soy algo bruto pero asi? :v localblip = createBlip( 92.50121, -165.68721, 2.59375, 23 ) setBlipVisibleDistance( localblip, 100 ) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now