Jump to content

help please :)


Recommended Posts

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.

Link to comment
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.

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