Jump to content

Затемнение экрана


Recommended Posts

Короче, хочу сделать чтобы перед тем как телепортировать по маркеру было затемнение экрана 1 секунду и потом уже телепорт. Не могу понять как это сделать.

exLVPD = createMarker(238.64601, 138.74957, 1003.62344, "arrow", 1.3, 255, 255, 0)

function exLVPD2(source, interior) 
        setElementInterior ( source, 0, 2290.17285, 2428.24585, 10.82031 ) 
end 
addEventHandler ("onMarkerHit", exLVPD, exLVPD2 )

Заранее спасибо :)

Link to comment

Используй fadeCamera.
 


 
  1. exLVPD = createMarker(238.64601, 138.74957, 1003.62344, "arrow", 1.3, 255, 255, 0)
  2.  
  3. function exLVPD2(source, interior)
  4. fadeCamera(false,1)
    setTimer(function()
        fadeCamera( true, 1 )
  5.      setElementInterior ( source, 0, 2290.17285, 2428.24585, 10.82031 )
    end,1000,1)
  6. end
  7. addEventHandler ("onMarkerHit", exLVPD, exLVPD2 )
    Ну как-то так.А  там отредактируй,если что..



Link to comment
14 hours ago, BrekBerry said:

Используй fadeCamera.
 



 
  1. exLVPD = createMarker(238.64601, 138.74957, 1003.62344, "arrow", 1.3, 255, 255, 0)
  2.  
  3. function exLVPD2(source, interior)
  4. fadeCamera(false,1)
    setTimer(function()
        fadeCamera( true, 1 )
  5.      setElementInterior ( source, 0, 2290.17285, 2428.24585, 10.82031 )
    end,1000,1)
  6. end
  7. addEventHandler ("onMarkerHit", exLVPD, exLVPD2 )
    Ну как-то так.А  там отредактируй,если что..



Ошибка: unexpected symbol near ' '
В строчке -     fadeCamera( true, 1 )

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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