This is a method, maybe unofficial since it wasn't described in the documentation so far, but it is there. It returns the entity of the locked object.
VRAGE.ModAPI.IMyEntity GetAttachedEntity()
Member of SpaceEngineers.Game.ModAPI.Ingame.IMyLandingGear
This is a small example in a script which was originally intended to quickly display actions and properties of a block in the Echo-output:
IMyLandingGear.GetAttachedEntity()
VRAGE.ModAPI.IMyEntity GetAttachedEntity()
Member of SpaceEngineers.Game.ModAPI.Ingame.IMyLandingGear
This is a small example in a script which was originally intended to quickly display actions and properties of a block in the Echo-output:
Code:
List<IMyTerminalBlock> blocks = new List<IMyTerminalBlock>(); List<ITerminalAction> actionList...