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.IngameAssembly: Sandbox.Common (in Sandbox.Common.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax bool GetNearestPlayer(
out Vector3D playerPosition
)
Function GetNearestPlayer (
<OutAttribute> ByRef playerPosition As Vector3D
) As Boolean
bool GetNearestPlayer(
[OutAttribute] Vector3D% playerPosition
)
abstract GetNearestPlayer :
playerPosition : Vector3D byref -> bool
Parameters
- playerPosition
- Type: Vector3D
Return Value
Type:
BooleanSee Also