Click or drag to resize
IMyRemoteControlGetNearestPlayer Method
v01.180.0 (Beta)

[This is preliminary documentation and is subject to change.]

Gets the nearest player's position. Will only work if the remote control belongs to an NPC

Namespace: Sandbox.ModAPI.Ingame
Assembly: Sandbox.Common (in Sandbox.Common.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
bool GetNearestPlayer(
	out Vector3D playerPosition
)

Parameters

playerPosition
Type: Vector3D

Return Value

Type: Boolean
See Also