Vice City: Multiplayer

VC:MP Discussion => Bugs and Crashes => Support => Closed Bug Reports => Topic started by: Sebastian on Mar 02, 2015, 04:10 PM

Title: AimPos doesn't give the correct coords
Post by: Sebastian on Mar 02, 2015, 04:10 PM
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. :)
Title: Re: AimPos doesn't give the correct coords
Post by: Stormeus on Apr 15, 2015, 07:10 PM
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.
Title: Re: AimPos doesn't give the correct coords
Post by: Sebastian on Apr 15, 2015, 07:58 PM
Well, too bad, I thought I will finally be able to create a Bullet Hole Mod (https://www.youtube.com/watch?v=tWzfmOWZCRg). :)
Title: Re: AimPos doesn't give the correct coords
Post by: Murdock on Feb 29, 2016, 08:54 PM
Is there actually a way to get the position the player is shooting at?
Title: Re: AimPos doesn't give the correct coords
Post by: Stormeus on Mar 07, 2016, 10:35 PM
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.