Detect mouse movement or player spin in script

Post » Tue Aug 06, 2013 11:16 pm

More specifically, I want to know if the user moved the mouse to make the player character spin in place. In other words, check if the player is looking around with the mouse. I can detect button presses and mouse button presses with NVSE, but I can't detect mouse movement.

I don't mind if they press and hold the Point-Of-View key and move the mouse to look around (since doing that freezes the player character in place). What I don't want is for the player character to spin around at all.

If anyone cares to know why, it's because I run a few animations on the character, and if they make the character move at all, it can glitch the animations. My idea to fix this was to make it so any button press would cancel the animations, but I can't track mouse movement, so that can still glitch it.

User avatar
Ricky Meehan
 
Posts: 3364
Joined: Wed Jun 27, 2007 5:42 pm

Return to Fallout: New Vegas