Skip to content
This repository was archived by the owner on Dec 13, 2025. It is now read-only.

VRage.Game.ModAPI.Ingame.IMyCubeGrid.IsSameConstructAs

Malware edited this page Dec 25, 2018 · 17 revisions

IndexIMyCubeGrid

Summary

public bool IsSameConstructAs(IMyCubeGrid other)

Determines whether this grid is mechanically 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

Parameters

Clone this wiki locally