#Mr.alkmasha Posted June 9, 2015 Posted June 9, 2015 Hello how Mark Hama Function repeated smoothMoveCamera Skype: ahmad.ib8
Tomas Posted June 9, 2015 Posted June 9, 2015 You must use it in a render. addEventHandler("onClientRender", root, function ( ) smoothMoveCamera ( ... ) end ) Currently developing for International Gaming Community - Join us!
#Mr.alkmasha Posted June 9, 2015 Author Posted June 9, 2015 You must use it in a render. addEventHandler("onClientRender", root, function ( ) smoothMoveCamera ( ... ) end ) I do not want her stop motion I want her to repeat movement Skype: ahmad.ib8
Tomas Posted June 9, 2015 Posted June 9, 2015 Could you post your code? Currently developing for International Gaming Community - Join us!
#Mr.alkmasha Posted June 9, 2015 Author Posted June 9, 2015 Could you post your code? ok setTimer ( function() CamSpawn = smoothMoveCamera (2235.99365,1673.45593,1009.05938,2235.99365,1673.45593,1009.05938,2235.99365,1678.45593,1008.35938,2235.99365,1673.45593,1009.05938,2235.99365,1673.45593,1009.05938,2235.99365,1678.45593,1008.35938) end, 500, 1 ) Skype: ahmad.ib8
Tomas Posted June 9, 2015 Posted June 9, 2015 Could you post your code? ok setTimer ( function() CamSpawn = smoothMoveCamera (2235.99365,1673.45593,1009.05938,2235.99365,1673.45593,1009.05938,2235.99365,1678.45593,1008.35938,2235.99365,1673.45593,1009.05938,2235.99365,1673.45593,1009.05938,2235.99365,1678.45593,1008.35938) end, 500, 1 ) And what do you want to do? Currently developing for International Gaming Community - Join us!
#Mr.alkmasha Posted June 9, 2015 Author Posted June 9, 2015 Could you post your code? ok setTimer ( function() CamSpawn = smoothMoveCamera (2235.99365,1673.45593,1009.05938,2235.99365,1673.45593,1009.05938,2235.99365,1678.45593,1008.35938,2235.99365,1673.45593,1009.05938,2235.99365,1673.45593,1009.05938,2235.99365,1678.45593,1008.35938) end, 500, 1 ) And what do you want to do? Thanx I Fixed It Give me Anim For Cam smoothMoveCamera Skype: ahmad.ib8
#Mr.alkmasha Posted June 9, 2015 Author Posted June 9, 2015 and how to Remove Cam on Press "Enter" Skype: ahmad.ib8
Tomas Posted June 9, 2015 Posted June 9, 2015 What kind of animation are you looking for? Post your full cude. Currently developing for International Gaming Community - Join us!
#Mr.alkmasha Posted June 9, 2015 Author Posted June 9, 2015 What kind of animation are you looking for? Post your full cude. I want to movements of Camera Skype: ahmad.ib8
Addlibs Posted June 10, 2015 Posted June 10, 2015 Just set an indefinite timer that will execute the command statement over and over again (until the timer is killed) Previously known as MrTasty.
Walid Posted June 10, 2015 Posted June 10, 2015 I want to movements of Camera Try this it should work local sm = {} sm.moov = 0 sm.object1,sm.object2 = nil,nil local function removeCamHandler() if(sm.moov == 1)then sm.moov = 0 end end local function camRender() if (sm.moov == 1) then local x1,y1,z1 = getElementPosition(sm.object1) local x2,y2,z2 = getElementPosition(sm.object2) setCameraMatrix(x1,y1,z1,x2,y2,z2) end end addEventHandler("onClientPreRender",root,camRender) function smoothMoveCamera(x1,y1,z1,x1t,y1t,z1t,x2,y2,z2,x2t,y2t,z2t,time) if(sm.moov == 1)then return false end sm.object1 = createObject(1337,x1,y1,z1) sm.object2 = createObject(1337,x1t,y1t,z1t) setElementAlpha(sm.object1,0) setElementAlpha(sm.object2,0) setObjectScale(sm.object1,0.01) setObjectScale(sm.object2,0.01) moveObject(sm.object1,time,x2,y2,z2,0,0,0,"InOutQuad") moveObject(sm.object2,time,x2t,y2t,z2t,0,0,0,"InOutQuad") sm.moov = 1 setTimer(removeCamHandler,time,1) setTimer(destroyElement,time,1,sm.object1) setTimer(destroyElement,time,1,sm.object2) return true end Do not yield your back to your enemy, might feel something strange in your ass. Two things are infinite the universe and human stupidity and i'm not sure about the universe. UF: IsTextInGridList | GetGridListRowIndexFromText | Table.removeValue | removeHex | dxDrawTriangle Skype: SaSuki102 | About Me | Youtube channel | Lua Tips & Tricks | Lua Strings | Lua Tables | Lua Operators
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