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

Sandbox.ModAPI.Ingame.IMyTerminalBlock.HasLocalPlayerAccess

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

IndexNamespace IndexIMyTerminalBlock

Summary

public bool HasLocalPlayerAccess()

Returns if local player can use block. Executes HasPlayerAccess(long, MyRelationsBetweenPlayerAndBlock = MyRelationsBetweenPlayerAndBlock.NoOwnership) with local player identityId. On Dedicated Server as identityId it is using 0 as playerId

Returns

bool

Can player access this block or not. (Result of HasPlayerAccess(long, MyRelationsBetweenPlayerAndBlock = MyRelationsBetweenPlayerAndBlock.NoOwnership) function call)

Clone this wiki locally