AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Detect Mousemovement, lock mouse axis. (https://forums.alliedmods.net/showthread.php?t=167959)

teh ORiON 09-22-2011 12:13

Detect Mousemovement, lock mouse axis.
 
Greetings,

Can anyone give an example how to do this:

1: Lock a player's mouse axis, so he can't look up nor down.

2: Detect mouse movement, if mouse moved to the left or the right,
and if so, change the players move direction to the corresponding direction.
Basically I want it so that you can't pan around or anything, only move left, right on a straight line. (Think of a sidescroller game).

Right now I'm in a third person side-view. Would also like if it was possible to change aim direction, so instead of shooting at the wall, aim would be locked to either left or right.

[IMG]http://img8.**************/img8/5568/tfcsidescroll.jpg[/IMG]


All times are GMT -4. The time now is 19:37.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.