Skip to content

Sandbox.ModAPI.Ingame.IMyGridTerminalSystem.CanAccess

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

IndexNamespace IndexIMyGridTerminalSystem

Summary

public bool CanAccess(IMyTerminalBlock block, MyTerminalAccessScope scope = MyTerminalAccessScope.All)

Checks if the grid terminal system can still access the given IMyTerminalBlock . A block is no longer accessible if it's destroyed, detached, it's ownership has changed or is otherwise disconnected from this grid terminal system.

Returns

bool

Parameters

Summary

public bool CanAccess(IMyCubeGrid grid, MyTerminalAccessScope scope = MyTerminalAccessScope.All)

Checks if the grid terminal system can still access the given IMyCubeGrid . A grid is no longer accessible if it's destroyed, detached, it's ownership has changed or is otherwise disconnected from this grid terminal system.

Returns

bool

False if grid isnull, closed or you can't access that grid

Parameters

Clone this wiki locally