Rotate Player
I need to spin a player 180 degrees, any suggestions?
Sure would be nice to have a native like RotatePlayer(index, degrees), that either changes the players angle by that many degrees clockwise or PlayerAngle(index, degrees, direction) where direction eqauls either left/right or clockwise/counter-clockwise and decides the direction of the spin. I am sure this is possible by actually makeing the player turn, but the hope here is that the players angle will automatically be adjusted without any noticeable "spinning" animation of any kind. |
Code:
|
Beauty thanks, much appreciated :D
I hope you didn't go to the trouble of writeing all that just for me :oops: I should have been more specific and said that I am writeing a plugin and need a function that will rotate a player, but this is just as good or better.... I just hope I haven't inconvienced you :oops: Thanks again :D PS just noticed out of the corner of my eye :P you used <Vexd_Utilities> :shock: over here at AMXx I believe common practice is to use the <engine> module/include instead of Vexd :wink: No biggie, just thought I'd point it out :) |
Lol, what confuses me the most is the fact that the functions he's using are the ones specified in engine, not Vexd_Unitilities.
|
Quote:
When I first read #include <Vexd_Utilities> I must admit I was afraid I would have to port it :P But it does what it is supposed to and I can manage rewrieting it to do exactly what I need it to do pretty simply and thats whats important :D |
I use amx 0.9.9 so I'm used to include Vexd Utilities (and not engine), but there is a Vexd_Utilities.inc file in the include folder of amxx so why couldn't I use it :P
And I wrote all that just for you but it wasn't a problem, I didn't have anything else to do. :wink: |
Quote:
|
| All times are GMT -4. The time now is 17:15. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.