MRmihailZH Posted January 10, 2019 Share Posted January 10, 2019 Короче, хочу сделать чтобы перед тем как телепортировать по маркеру было затемнение экрана 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
BrekBerry Posted January 10, 2019 Share Posted January 10, 2019 Используй fadeCamera. exLVPD = createMarker(238.64601, 138.74957, 1003.62344, "arrow", 1.3, 255, 255, 0) function exLVPD2(source, interior) fadeCamera(false,1) setTimer(function() fadeCamera( true, 1 ) setElementInterior ( source, 0, 2290.17285, 2428.24585, 10.82031 ) end,1000,1) end addEventHandler ("onMarkerHit", exLVPD, exLVPD2 ) Ну как-то так.А там отредактируй,если что.. Link to comment
MRmihailZH Posted January 11, 2019 Author Share Posted January 11, 2019 14 hours ago, BrekBerry said: Используй fadeCamera. exLVPD = createMarker(238.64601, 138.74957, 1003.62344, "arrow", 1.3, 255, 255, 0) function exLVPD2(source, interior) fadeCamera(false,1) setTimer(function() fadeCamera( true, 1 ) setElementInterior ( source, 0, 2290.17285, 2428.24585, 10.82031 ) end,1000,1) end addEventHandler ("onMarkerHit", exLVPD, exLVPD2 ) Ну как-то так.А там отредактируй,если что.. Ошибка: unexpected symbol near ' ' В строчке - fadeCamera( true, 1 ) 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