SetProjectedGrid disables all functional blocks

Gohla shared this bug 3 years ago
Submitted

In the modding API, the SetProjectedGrid method in Sandbox.ModAPI.IMyProjector allows a mod to set the projected grid for a projector. However, this method disables all functional blocks in the projection, causing the projected grid to have all blocks disabled when welding. When loading a blueprint in the projector ingame, this does not happen, so it should also not happen when using SetProjectedGrid.


The cause is the Sandbox.Game.Entities.Cube.MyProjectorClipboard.ProcessCubeGrid method, which is called in SetProjectedGrid, which disables all the functional blocks.

Leave a Comment
 
Attach a file