Jump to content

Help animation door open for dm


KAMAZIUKAS

Recommended Posts

--- Slow ---

--Markers--

Marker2 = createMarker( 2353.3000488281, -3492, 277.70001220703, "corona", 5 , 255, 255, 255, 0 )

Marker1 = createMarker( 2353.3000488281, -3483, 277.70001220703, "corona", 5 , 255, 255, 255, 0 )

--Objects--

Gates1 = createObject ( 971, 2353.5, -3475.69921875, 281.39999389648, 0, 0, 0 )

Gates2 = createObject ( 971, 2353.5, -3475.69921875, 273.20001220703, 0, 0, 0 )

function GatesOpen ( thePlayer, matchingDimension )

if thePlayer == getLocalPlayer() then

if source == Marker1 then

setGameSpeed (0.4)

moveObject (Gates1, 971, 2353.5, -3475.69921875, -13, 4567.5, 69.6474, 1206.45)

setTimer(function ()

setGameSpeed (0.9)

end,1000, 1)

setTimer(function ()

openElement (Gates1)

Gates1 = createObject ( 971, 2353.5, -3475.69921875, 281.39999389648, 0, 0, 0 )

end,5000, 1)

end

end

end

addEventHandler ( "onClientMarkerHit", root, GatesOpen )

function GatesClose2 ( thePlayer, matchingDimension )

if thePlayer == getLocalPlayer() then

if source == Marker2 then

setGameSpeed (0.4)

moveObject (Gates2, 971, 2353.5, -3475.69921875, -20, 192.99, 154.23, -12.45)

setTimer(function ()

setGameSpeed (0.9)

end,1000, 1)

setTimer(function ()

closeElement (Gates2)

Gates2 = createObject ( 971, 2353.5, -3475.69921875, 273.20001220703, 0, 0, 0)

end,5000, 1)

end

end

end

addEventHandler ( "onClientMarkerHit", root, GatesClose2 )

in this way?
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...