Jump to content

help please :)


Recommended Posts

Posted

I got a script from maky55 from tutorials section , well i need your help about that :D , i cant seems to rotate the gate ( after i scripted the gate from maky55 script) can you guys help ?

Heres the code :

iam on my tablet so... dint have the lua file , sorry but you can visit viewtopic.php?f=148&t=51875 , team spoiler

thx for reading :D

-Silver

Posted

user getElementRotation and setElementRotation :)

rX, rY, rZ = getElementRotation ( gate ) 
setElementRotation ( gate, rX, rY,rZ, true ) 

well for example if you want to rotate from Z then it will look like this

setElementRotation ( gate, 0, 0, rZ+50, true ) 

+ 50 is the amount of rotation.

Posted
user getElementRotation and setElementRotation :)
rX, rY, rZ = getElementRotation ( gate ) 
setElementRotation ( gate, rX, rY,rZ, true ) 

well for example if you want to rotate from Z then it will look like this

setElementRotation ( gate, 0, 0, rZ+50, true ) 

+ 50 is the amount of rotation.

true?

From where did you come with true? This argument must be string. You don't even need 5th argument nor the function itself since moveObject has rotation arguments and it would be much better to use it because it will move smooth.

@|xTR|Silver, You used moveObject rotation 271 when the gate close, use it the same way when the gate open but with -271.

Posted

thx , but i fixed it my own way xD , btw thax once again , your dest is too complicated for my brain to handle all of it , i think its gonna blow when i was reading it :///

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