Raised This Month: $ Target: $400
 0% 

Entity coordinates?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
runonce
Junior Member
Join Date: Jan 2010
Old 02-01-2010 , 22:00   Entity coordinates?
Reply With Quote #1

I'm looking for a way of finding out the coordinates of all friendly buildings (TF2 Engineer). Then I could compare them with the player coordinates and get the distance to each one.

Thanks again everyone!
runonce is offline
=MaTi=
Member
Join Date: Jan 2008
Old 02-01-2010 , 22:11   Re: Entity coordinates?
Reply With Quote #2

GetEntPropVector

Example:

PHP Code:
new Float:Pos[3];
GetEntPropVector(edictProp_Send"m_vecOrigin"Pos); 
=MaTi= is offline
runonce
Junior Member
Join Date: Jan 2010
Old 02-02-2010 , 20:34   Re: Entity coordinates?
Reply With Quote #3

Thanks! That should work
runonce is offline
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 12:35.


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