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

VRage.Game.ModAPI.Ingame.IMyCubeGrid.IsSameConstructAs

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

IndexNamespace IndexIMyCubeGrid

Summary

public bool IsSameConstructAs(IMyCubeGrid other)

Determines whether this grid is VRage.Game.ModAPI.GridLinkTypeEnum.Mechanical connected to the other. This is any grid connected with rotors or pistons or other mechanical devices, but not things like connectors. This will in most cases constitute your complete construct.

Be aware that using merge blocks combines grids into one, so this function will not filter out grids connected that way. Also be aware that detaching the heads of pistons and rotors will cause this connection to change.

Returns

bool

True if grid connected with VRage.Game.ModAPI.GridLinkTypeEnum.Mechanical linking

Parameters

Clone this wiki locally