Distance

Please post any questions about developing your plugin here. Please use the search function before posting!
decompile
Senior Member
Posts: 417
Joined: Sat Oct 10, 2015 10:37 am
Location: Germany
Contact:

Distance

Postby decompile » Tue May 31, 2016 3:08 pm

Hey,

How can I find the distance in units between 2 vectors?

(in my example its player origin compared to an existing info_teleport_destination)
User avatar
satoon101
Project Leader
Posts: 2703
Joined: Sat Jul 07, 2012 1:59 am

Re: Distance

Postby satoon101 » Tue May 31, 2016 4:03 pm

I'm certain this question has been asked at least 2 or 3 times before. Please try searching in the future.

For your answer:
http://builds.sourcepython.com/job/Sour ... t_distance
Image
decompile
Senior Member
Posts: 417
Joined: Sat Oct 10, 2015 10:37 am
Location: Germany
Contact:

Re: Distance

Postby decompile » Tue May 31, 2016 4:35 pm

Mhm, not using the search box recently since the threads I find are mostly outdated.
Thanks anyway
User avatar
BackRaw
Senior Member
Posts: 537
Joined: Sun Jul 15, 2012 1:46 am
Location: Germany
Contact:

Re: Distance

Postby BackRaw » Wed Jun 01, 2016 6:10 am

You could always just look at the source code: https://github.com/Source-Python-Dev-Te ... p.cpp#L177

Return to “Plugin Development Support”

Who is online

Users browsing this forum: Bing [Bot] and 81 guests