KAMAZIUKAS Posted February 2, 2014 Share Posted February 2, 2014 Hey people. what can me help how create lua script animation door open for dm map? example Finn v4 2:31-2:34,2:40-2:44 and 3:15-3:18 or Johny v8 spawn open wall Link to comment
KAMAZIUKAS Posted February 2, 2014 Author Share Posted February 2, 2014 example 2 for dm? Link to comment
Castillo Posted February 2, 2014 Share Posted February 2, 2014 Well, you can get the object from the map itself using getElementByID. Example: local myObject = getElementByID ( "myObjectID" ) moveObject ( myObject, 2000, 0, 0, 0 ) Link to comment
KAMAZIUKAS Posted February 3, 2014 Author Share Posted February 3, 2014 --- 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
KAMAZIUKAS Posted February 3, 2014 Author Share Posted February 3, 2014 finally! finished script another question how scale gate?? Link to comment
Castillo Posted February 3, 2014 Share Posted February 3, 2014 setObjectScale Remember that this function will not resize the object collision. 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