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

Sandbox.ModAPI.Ingame.IMyTerminalBlock.HasPlayerAccess

Morten Aune Lyrstad edited this page Apr 16, 2022 · 19 revisions

IndexNamespace IndexIMyTerminalBlock

Summary

public bool HasPlayerAccess(long playerId, MyRelationsBetweenPlayerAndBlock defaultNoUser = MyRelationsBetweenPlayerAndBlock.NoOwnership)

Returns if local player can use block. It is also checking for admin access.

Returns

bool

Can player access block or not

Parameters

Clone this wiki locally