September 25, 20178 yr Hello, I can't seem to figure out why my script will not move my camera yaw to the exact position I want. I never noticed an issue with this before and it seemed to work fine but now it will sometimes be off ~6 degrees give or take. This is weird because in my script every loop I have it check to make sure the getCamera().getYawAngle() is equal to my desired angle. This is why I find itw eird it won't move the camera because I even put a logger into the section and it should be executing the moveYaw method but it doesn't appear to do anything. This results in repeated camera yaw check fails and throws off clicking spots. Is there anyway like with creating a walking destination that you can set the min move to 0 so it will exactly move to it?
September 26, 20178 yr Author 9 hours ago, Juggles said: It has a margin of +-6 Hey, I can't seem to figure out another weird bug wondering if you have any input on it kind of related to this I guess. When using gRandom (I know it's deprecated) I set it using gRandom(0, 6) sometimes it appears to generate 10 or other numbers outside of its bounds. An example of what I was doing would be like (1000 + gRandom(0, 6)) this will sometimes output 1011 etc...
September 26, 20178 yr 26 minutes ago, Nebulae said: Hey, I can't seem to figure out another weird bug wondering if you have any input on it kind of related to this I guess. When using gRandom (I know it's deprecated) I set it using gRandom(0, 6) sometimes it appears to generate 10 or other numbers outside of its bounds. An example of what I was doing would be like (1000 + gRandom(0, 6)) this will sometimes output 1011 etc... isn't it gRandom(standard Deviation, mean) ? Should only give you 1006 every time then
September 27, 20178 yr Author 22 hours ago, Juggles said: isn't it gRandom(standard Deviation, mean) ? Should only give you 1006 every time then Output from log(gRandom(0, 1)) [INFO][Bot #1][09/26 11:36:37 PM]: 1 [INFO][Bot #1][09/26 11:36:37 PM]: 0 [INFO][Bot #1][09/26 11:36:38 PM]: 0 [INFO][Bot #1][09/26 11:36:38 PM]: 2 [INFO][Bot #1][09/26 11:36:40 PM]: 1 [INFO][Bot #1][09/26 11:36:40 PM]: 1 [INFO][Bot #1][09/26 11:36:41 PM]: 0 [INFO][Bot #1][09/26 11:36:41 PM]: 1 [INFO][Bot #1][09/26 11:36:43 PM]: 1 [INFO][Bot #1][09/26 11:36:43 PM]: 0 [INFO][Bot #1][09/26 11:36:44 PM]: 1 [INFO][Bot #1][09/26 11:36:44 PM]: 2 Just to verify doing gRandom(0, 0.5) works the way I want it to. Edited September 27, 20178 yr by Nebulae
Create an account or sign in to comment