s&
About
The Project
info
About s&box
map
Roadmap
monitoring
Metrics
Engine startup and usage numbers
Updates
newspaper
Latest News
published_with_changes
Changes
Release-by-release changelog
Games
Browse Games
Discover Games
gamejams
Workshop
Playable
sports_esports
Games
Standalone games and gamemodes
Assets
landscape
Maps
view_in_ar
Models
texture
Materials
apparel
Clothing
apps
Everything
Every asset type in one list
Forum
Learn
Documentation
rocket_launch
Getting Started
docs
Documentation
api
API Reference
Resources
school
Tutorials
manage_search
Code Search
Get s&box
Sign in with Steam
Api
Network
Connection
DistanceSquared
chevron_left
Network
class
Connection
Constructors
lock
Connection
Properties
data_object
Address
data_object
CanDestroyObjects
data_object
CanRefreshObjects
data_object
CanSpawnObjects
data_object
ConnectionTime
data_object
DisplayName
data_object
FriendInfo
data_object
Id
data_object
IsActive
data_object
IsConnecting
data_object
IsHost
data_object
Latency
data_object
MessagesRecieved
data_object
MessagesSent
data_object
Name
data_object
OwnerSteamId
data_object
PartyId
data_object
Ping
data_object
Stats
data_object
SteamId
data_object
Time
Methods
functions
DistanceSquared
functions
Down
functions
GetUserData
functions
HasInventoryItem
functions
HasPermission
functions
Kick
functions
Pressed
functions
Released
functions
SendLog
functions
SendMessage
functions
SendRequest
functions
SendResponse
Static Properties
data_object
All
data_object
Host
data_object
Local
Static Methods
functions
Find
DistanceSquared
Calculate the closest distance (squared) to a position based on the Pvs sources from this Sandbox.Connection.
method
float
DistanceSquared
(
Vector3
position
)
Parameters
Name
Type
Description
position
Vector3
Returns
Type
Description
float
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.