How do I get an entity's position?
I need a way of getting the position of entities from FindEntityByClassname - can it be done?
I've already searched the Wiki, API and Forum to no avail. The plugin is designed for TF2, if that makes a difference. |
Re: How do I get an entity's position?
Code:
new Float:position[3]; |
Re: How do I get an entity's position?
Thanks :D
+karma :) |
Re: How do I get an entity's position?
This definitely should be considered as a utility function like GetEntityVectorOrigin or something.
Because I was a newb and tried to use GetClientAbsOrigin or GetClientEyeOrigin to get the origin of a witch (L4D) and it kept giving me errors saying it wasn't a valid client index! I mean sure it wasn't a valid client index, I just couldn't figure out a way till CrimsonGT suggested using the m_vecOrigin netprop. At least TeleportEntity works on Entities :). |
All times are GMT -4. The time now is 17:27. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.