Findeh 34 Posted May 8, 2018 Share Posted May 8, 2018 Good day. For some reason lua code like: Lua.LuaDoString("TurnLeftStart();"); is not working. Maybe it's because it is Protected, or maybe i do it wrong, not sure. Anyway. How can i turn (rotate) character with a code? For some reason there is no function for that in wManager.Wow.Helpers.Move Thank you in advance for any advices. Link to comment https://wrobot.eu/forums/topic/9362-how-to-turn-left-right-with-c/ Share on other sites More sharing options...
Matenia 628 Posted May 9, 2018 Share Posted May 9, 2018 Protected functions work, actually. But you'll need to call TurnLeftStop() as far as I know and "nudge" your client somehow (in Vanilla) to actually execute the movement. You can also just use MovementManager.Face() to face a vector. Link to comment https://wrobot.eu/forums/topic/9362-how-to-turn-left-right-with-c/#findComment-43404 Share on other sites More sharing options...
Findeh 34 Posted May 9, 2018 Author Share Posted May 9, 2018 Thank you for a reply. Yeah, TurnLeftStop() is need. But it is not workiking just "from the box" if you add it in FC, for example. That's the problem. And i'm not sure how can i use MovementManager.Face() without any target. I need just to spin in one place for no reason, without any goal or something. Link to comment https://wrobot.eu/forums/topic/9362-how-to-turn-left-right-with-c/#findComment-43414 Share on other sites More sharing options...
Matenia 628 Posted May 9, 2018 Share Posted May 9, 2018 Without any goal? Why spin in the first place? Just make the bot hit the keybind for turning then. You could do MovementManager.Face(ObjectManager.Me.Position), it might actually work. If not, add + 1 to X and Z on your own vector Link to comment https://wrobot.eu/forums/topic/9362-how-to-turn-left-right-with-c/#findComment-43415 Share on other sites More sharing options...
Findeh 34 Posted May 9, 2018 Author Share Posted May 9, 2018 2 hours ago, Matenia said: Just make the bot hit the keybind for turning then. Yeah, but how? No turn keys in wManager.Wow.Helpers.Move. Only back, forward, strafes and up/down. 2 hours ago, Matenia said: You could do MovementManager.Face(ObjectManager.Me.Position), it might actually work. If not, add + 1 to X and Z on your own vector If i understand correctly, this will be not a spin but an instant turn, or am i wrong? Link to comment https://wrobot.eu/forums/topic/9362-how-to-turn-left-right-with-c/#findComment-43418 Share on other sites More sharing options...
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