Hy guys!
Does someone knows - is there a way in the source-python of calculating the distance from one player/entity to another?
CSGO: Calculate a distance from one player/entity to another
- L'In20Cible
- Project Leader
- Posts: 1533
- Joined: Sat Jul 14, 2012 9:29 pm
- Location: Québec
Re: CSGO: Calculate a distance from one player/entity to another
khaimovmr wrote:Hy guys!
Does someone knows - is there a way in the source-python of calculating the distance from one player/entity to another?
Syntax: Select all
distance = player.origin.get_distance(entity.origin)
Re: CSGO: Calculate a distance from one player/entity to another
L'In20Cible wrote:khaimovmr wrote:Hy guys!
Does someone knows - is there a way in the source-python of calculating the distance from one player/entity to another?Syntax: Select all
distance = player.origin.get_distance(entity.origin)
Man, thanks a lot!
Return to “General Discussion”
Who is online
Users browsing this forum: No registered users and 59 guests