|xTR|Silver Posted March 6, 2014 Share Posted March 6, 2014 I got a script from maky55 from tutorials section , well i need your help about that , 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 -Silver Link to comment
|xTR|Silver Posted March 6, 2014 Author Share Posted March 6, 2014 Sorry , bad english Link to comment
|xTR|Silver Posted March 6, 2014 Author Share Posted March 6, 2014 Is that a cooamnd that i should use on my server ?? ( to get the rotation of the gate ofc ) -thx for reading -Silver Link to comment
Hell-Mate Posted March 6, 2014 Share Posted March 6, 2014 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
|xTR|Silver Posted March 6, 2014 Author Share Posted March 6, 2014 Thx bro , you helped me alot , ( trying hard to find 1 , took 1 day to think of registering in mta forum and started a topic ) :/// Link to comment
TAPL Posted March 6, 2014 Share Posted March 6, 2014 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
|xTR|Silver Posted March 6, 2014 Author Share Posted March 6, 2014 thx , but i fixed it my own way , 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 :/// 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