Help on Vectors/Origins.
I'm trying to figure out how to convert this piece of code from the HLSDK, to AMX.
Code:
Here's what i have so far: Code:
I'm stuck at the part of "Vector vecGo = pent->v.origin - pEntity->v.origin;" How can i create a 'vector' and subject two origins like that? And then be able to set the players velocity to it? |
Re: Help on Vectors/Origins.
What exactly would that do?
Sounds like you need the chr_engine inc file ... If you want to set a velocity in the direction of an origin it's definitely what you want ... otherwise I misunderstood - maybe someone else could help if it's clearer [ or maybe it's just not clear to muppets ]. |
Re: Help on Vectors/Origins.
xs is enough...
Code:
|
Re: Help on Vectors/Origins.
Quote:
Works fine now, thanks. |
| All times are GMT -4. The time now is 16:16. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.