Jump to content

Lagging with script.


Ryan1010

Recommended Posts

When ever i used this code ...

a = createObject(8397,145.07537842,-4236.64062500,10.53046608,0.00000000,0.00000000,0.00000000) 
b = createObject(8397,154.71527100,-4236.63330078,10.53046608,0.00000000,0.00000000,0.00000000) 
c = createObject(8397,164.10713196,-4236.66796875,10.53046608,0.00000000,0.00000000,0.00000000) 
d = createObject(8620,313.79312134,-3912.51977539,23.77605057,0.00000000,0.00000000,0.00000000) 
e = createObject(8620,312.52349854,-3855.06738281,23.77605057,0.00000000,0.00000000,0.00000000)  
f = createObject(8620,261.70608521,-3864.51269531,23.77605057,0.00000000,0.00000000,0.00000000)  
g = createObject(8620,290.12689209,-3794.57031250,23.77605057,0.00000000,0.00000000,0.00000000) 
function rotation() 
if rampState == false then 
rampState = true 
moveObject ( a, 19000,145.07537842,-4236.64062500,10.53046608,0.00000000,0.00000000,360.00000000) 
moveObject ( b, 19000,154.71527100,-4236.63330078,10.53046608,0.00000000,0.00000000,360.00000000) 
moveObject ( c, 19000,164.10713196,-4236.66796875,10.53046608,0.00000000,0.00000000,360.00000000) 
moveObject ( d, 30000,313.79312134,-3912.51977539,23.77605057,0.00000000,0.00000000,360.00000000) 
moveObject ( e, 30000,312.52349854,-3855.06738281,23.77605057,0.00000000,0.00000000,360.00000000) 
moveObject ( f,  30000,261.70608521,-3864.51269531,23.77605057,0.00000000,0.00000000,360.00000000) 
moveObject ( g, 30000,290.12689209,-3794.57031250,23.77605057,0.00000000,0.00000000,360.00000000) 
else 
rampState = false 
moveObject ( a, 19000,145.07537842,-4236.64062500,10.53046608,0.00000000,0.00000000,0.00000000) 
moveObject ( b, 19000,154.71527100,-4236.63330078,10.53046608,0.00000000,0.00000000,0.00000000) 
moveObject ( c, 19000,164.10713196,-4236.66796875,10.53046608,0.00000000,0.00000000,0.00000000) 
moveObject ( d, 30000,313.79312134,-3912.51977539,23.77605057,0.00000000,0.00000000,0.00000000) 
moveObject ( e, 30000,312.52349854,-3855.06738281,23.77605057,0.00000000,0.00000000,0.00000000) 
moveObject ( f,  30000,261.70608521,-3864.51269531,23.77605057,0.00000000,0.00000000,0.00000000) 
moveObject ( g, 30000,290.12689209,-3794.57031250,23.77605057,0.00000000,0.00000000,0.00000000) 
end 
end 
setTimer ( rotation, 100, 0) 
  

about 2 minutes later, i start to lag, then more and more, what can i do to fix it?

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...