Skip to content

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