1
Modification Help / Re: [FIXED] Syntax error on state that doesnt make sense
« on: January 14, 2016, 01:15:23 AM »
90% of the time, a syntax error is on the line above the one torque highlights.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
give a bot a light, make the bot invisible, and then mount the bot on someone's head.
Calling something an "incredibly bad way to do it" when it only has a couple quickly-fixed errors is misleading, especially for people who are learning because they think the whole thing must be crap when in fact you have to add a tiny amount of things to make it work properly
-snip-
I had a look at the result of getMuzzleVector and the muzzle vector doesn't appear to be changing when the player is looking at the ground.
I actually find it's easier to do the comparisons of X/Y/Z axis vs finding the distance from the center of the sphere
pl.x+pl.radius > box.x-(box.width/2) && pl.x-pl.radius < box.x+(box.width/2) &&
pl.y+pl.radius > box.y-(box.length/2) && pl.y-pl.radius < box.y+(box.length/2) &&
pl.z+pl.height > box.z-(box.height/2) && pl.z-pl.height < box.z+(box.height/2)
VectorDist(pl, box) < box.radius + pl.radius