Ohren 106 Posted March 22, 2013 Share Posted March 22, 2013 I'm working on this Feral Druid class (still) and I STILL can't manage to get my lua script to work. Idk if it's just noob-ness at 5AM or what.. xP I need to only cast Shred if I am behind a target. The only LUA functions I've been able to find involving this are from Emulated servers. >.< Link to comment https://wrobot.eu/forums/topic/247-check-if-youre-behind-the-target/ Share on other sites More sharing options...
Droidz 2738 Posted March 22, 2013 Share Posted March 22, 2013 Hi, Wait the next wrobot update and try with this condition: Ohren 1 Link to comment https://wrobot.eu/forums/topic/247-check-if-youre-behind-the-target/#findComment-1584 Share on other sites More sharing options...
Ohren 106 Posted March 22, 2013 Author Share Posted March 22, 2013 You're the best. :) Link to comment https://wrobot.eu/forums/topic/247-check-if-youre-behind-the-target/#findComment-1586 Share on other sites More sharing options...
Ohren 106 Posted March 22, 2013 Author Share Posted March 22, 2013 Yes, that works perfectly! (System.Math.Abs(ObjectManager.Me.Rotation - ObjectManager.Target.Rotation) < 0.6f) Even though I'm not quite sure exactly how it works... Why aren't you some software tech for some fortune 500 company? :P Link to comment https://wrobot.eu/forums/topic/247-check-if-youre-behind-the-target/#findComment-1591 Share on other sites More sharing options...
Nicki Anonymous 26 Posted April 13, 2013 Share Posted April 13, 2013 I can't get this to work, for some reason it keeps casting Shred even though the target is facing me. Has anything changed since this post? I removed it and did the log to show it worked fine without then added it in and did the log so you could see the constant repetitive attempts towards the end there. It's almost like it checks when it initially tries and if it's successful then all is good - but if it fails it keeps on trying to shred even though the mob has now turned to face you. Log attached. Thoughts?LOG - 13 Apr 2013 09H13.html Link to comment https://wrobot.eu/forums/topic/247-check-if-youre-behind-the-target/#findComment-2196 Share on other sites More sharing options...
Loki 47 Posted April 13, 2013 Share Posted April 13, 2013 Wow just WOW! That condition is simply magic! Im impressed! Link to comment https://wrobot.eu/forums/topic/247-check-if-youre-behind-the-target/#findComment-2197 Share on other sites More sharing options...
Nicki Anonymous 26 Posted April 13, 2013 Share Posted April 13, 2013 It would be if it worked :( Link to comment https://wrobot.eu/forums/topic/247-check-if-youre-behind-the-target/#findComment-2199 Share on other sites More sharing options...
Droidz 2738 Posted April 15, 2013 Share Posted April 15, 2013 It would be if it worked :( Try with this code:(System.Math.Abs(ObjectManager.Me.Rotation - ObjectManager.Target.Rotation) < 0.35f) (wow object rotation is in radians, -pi at +pi) Link to comment https://wrobot.eu/forums/topic/247-check-if-youre-behind-the-target/#findComment-2282 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