General > Developers Corner
Set entity angles question
(1/1)
Doomed:
How would I go about setting the angles of an entity via mouse input? For example, holding USE will allow you to rotate it freely and shift + USE will perform 45 degree snaps (basically, like the physgun)
Megiddo:
I think the gui library has everything you need for mouse input -- http://wiki.garrysmod.com/page/Category:gui. Then use SetAngles based on your rotation -- http://wiki.garrysmod.com/page/Entity/SetAngles.
Navigation
[0] Message Index
Go to full version