aneco Posted December 21, 2011 Share Posted December 21, 2011 Hello everyone first of all my problem is when i spawn somethink from gmes https://community.multitheftauto.com/index.php?p= ... ls&id=3070 im not able to rotate it i searched wiki for rotate object function but i cant find it.is anyone help me about rotatin object. Link to comment
Jacko Posted December 22, 2011 Share Posted December 22, 2011 https://wiki.multitheftauto.com/wiki/SetElementRotation ^ there yah go Link to comment
aneco Posted December 22, 2011 Author Share Posted December 22, 2011 thanks for your answer. function rotate(source, key, keyState) if key =="mouse_wheel_up" then rx,ry,rz = getObjectRotation(object) setObjectRotation ( object, rx,ry,rz - 5 ) end if key =="mouse_wheel_down" then rx,ry,rz = getObjectRotation(object) setObjectRotation ( object, rx,ry,rz + 5) end bindKey(playerSource, "mouse_wheel_up", "down", rotate) bindKey(playerSource, "mouse_wheel_down", "down", rotate) i made function like this but i dont know where i need to put this into resource. sorry for my bad english. 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