Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Sandbox.ModAPI.Ingame.IMyRemoteControl.GetNearestPlayer

Morten Aune Lyrstad edited this page Feb 3, 2022 · 21 revisions

IndexNamespace IndexIMyRemoteControl

Summary

public bool GetNearestPlayer(out Vector3D playerPosition)

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

Returns

bool

True if was able to get player position

Parameters

Clone this wiki locally