Raised This Month: $51 Target: $400
 12% 

Question about X, Y, Z...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
I'mSane
Member
Join Date: Apr 2010
Location: SPb, Russia
Old 11-28-2010 , 13:23   Question about X, Y, Z...
Reply With Quote #1

Hi guys! How can I get X, Y or Z coordinates of place player is looking on?
I mean I needn't to get X, Y, Z of point where player's looking, I need to get only 1 coord. (X, Y or Z).
__________________
Sorry for noob questions.
Sorry for bad english.
I'mSane is offline
Send a message via Skype™ to I'mSane
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 11-28-2010 , 13:40   Re: Question about X, Y, Z...
Reply With Quote #2

GetClientAbsOrigin
GetClientEyePosition
GetClientEyeAngle
__________________
Silvers is offline
I'mSane
Member
Join Date: Apr 2010
Location: SPb, Russia
Old 11-28-2010 , 14:36   Re: Question about X, Y, Z...
Reply With Quote #3

Yes, but I don't know what exactly each function does.
__________________
Sorry for noob questions.
Sorry for bad english.
I'mSane is offline
Send a message via Skype™ to I'mSane
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Old 11-28-2010 , 15:32   Re: Question about X, Y, Z...
Reply With Quote #4

AbsOrigin gives you a Float Array {X, Y, Z} of where the player's model begins (below his feet)

EyePosition does the same, except for where the player's view camera is.

EyeAngle gives you another Float Array {X, Y, Z} which describes the Players viewing angles.
AtomicStryker is offline
I'mSane
Member
Join Date: Apr 2010
Location: SPb, Russia
Old 11-28-2010 , 15:49   Re: Question about X, Y, Z...
Reply With Quote #5

Thank you very much.
__________________
Sorry for noob questions.
Sorry for bad english.
I'mSane is offline
Send a message via Skype™ to I'mSane
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:46.


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