Garry's Mod Wiki

Revision Difference

NextBot:GetRangeSquaredTo#510746

<function name="GetRangeSquaredTo" parent="NextBot" type="classfunc">⤶ <description>⤶ Returns squared distance to an entity or a position.⤶ ⤶ See also <page>NextBot:GetRangeTo</page>.⤶ </description>⤶ <realm>Server</realm>⤶ <file_name>src/garrysmod/Objects/lua_nextbot.cpp</file_name>⤶ <file_line>80</file_line>⤶ <args>⤶ <arg name="to" type="Vector">The position to measure distance to. Can be an entity.</arg>⤶ </args>⤶ <rets>⤶ <ret name="" type="number">The squared distance</ret>⤶ </rets>⤶ </function>⤶ ⤶