Recommended Posts

Здравствуйте, дорогое комьюнити!

Столкнулся с проблемой в функции 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

жду ответов!)

Share this post


Link to post
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 )

 

Share this post


Link to post
marker1 = createMarker( 364, 174, 1009, "cylinder", 1.5, 255, 255, 0, 170)
setElementInterior( marker1, 3 )
setElementDimension( marker1, 14343 )
  • Like 1

Share this post


Link to post

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.