AimPos doesn't give the correct coords

Started by Sebastian, Mar 02, 2015, 04:10 PM

Previous topic - Next topic

Sebastian

Quote from: stormeusGetPlayerAimPos: returns the position that a player is aiming toward (only updated when shooting)

Just wanted to do something with that AimPos function, but it doesn't give the correct coords...

PS: I also want to ask if you can give us onPlayerShootPlayer event. :)

Stormeus

Not a bug, I just messed up the documentation. AimPos seems to just be the position the player is aiming from and AimDir indicates the direction they're aiming at. Even then I'm not 100% sure on this.

Sebastian

Well, too bad, I thought I will finally be able to create a Bullet Hole Mod. :)

Murdock

Is there actually a way to get the position the player is shooting at?

Stormeus

Quote from: Murdock on Feb 29, 2016, 08:54 PMIs there actually a way to get the position the player is shooting at?

I'll have to refer back to the aim sync implementation but I'm pretty sure it's possible with some mathematical manipulation. I'll post back if I figure something out.