MenTos Posted October 14, 2018 Share Posted October 14, 2018 Здравствуйте, дорогое комьюнити! Столкнулся с проблемой в функции nachalo. Должно быть так, чтобы маркер появлялся в 3 интерьере и в 14343 измерении. Но почему-то не работает. Скину вам полностью скрипт, проблема в функции nachalo. Помогите пожалуйста! marker = createMarker( -1285, -135, 15, "cylinder", 1.5, 255, 255, 0, 170) function MarkerHit( hitElement, matchingDimension ) if ( getElementDimension ( hitElement ) == 0 ) then -- if the player is in dimension 0 setElementDimension ( hitElement, 1 ) -- set his dimension to 1 local elementType = getElementType( hitElement ) -- get the hit element's type setElementInterior ( hitElement, 3, 390, 174, 1009 ) end end addEventHandler( "onMarkerHit", marker, MarkerHit ) -- attach onMarkerHit event to MarkerHit function marker1 = createMarker( 364, 174, 1009, "cylinder", 1.5, 255, 255, 0, 170) function nachalo ( hitElement, matchingDimension ) setElementInterior( marker1, 3 ) setElementDimension( marker1, 1 ) local elementType = getElementType( hitElement ) setElementModel ( hitElement, 1 ) end addEventHandler( "onMarkerHit", marker1, MarkerHit ) -- attach onMarkerHit event to MarkerHit function жду ответов!) Link to comment
SaNoR Posted October 14, 2018 Share Posted October 14, 2018 marker1 = createMarker( 364, 174, 1009, "cylinder", 1.5, 255, 255, 0, 170) function nachalo ( hitElement, matchingDimension ) setElementInterior( source, 3 ) setElementDimension( source, 14343 ) local elementType = getElementType( hitElement ) setElementModel ( hitElement, 1 ) end addEventHandler( "onMarkerHit", marker1, nachalo ) Link to comment
KillerX Posted October 14, 2018 Share Posted October 14, 2018 (edited) Wrong Section !! @TAPL @Disinterpreter Edited October 14, 2018 by KillerX Link to comment
K1parik Posted October 15, 2018 Share Posted October 15, 2018 marker1 = createMarker( 364, 174, 1009, "cylinder", 1.5, 255, 255, 0, 170) setElementInterior( marker1, 3 ) setElementDimension( marker1, 14343 ) 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