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

Adapting Existing Scripts

Malware edited this page Dec 13, 2025 · 4 revisions

DEPRECATION NOTICE

This documentation is out of date and no longer maintained.

Please visit the new documentation at: https://spaceengineers.wiki.gg/wiki/Scripting

So you've found that perfect script on the workshop, and you really wanna have a look at it in an MDK project to see what makes it tick. You tried just pasting the thing into a .cs file in the project and get nothing but a whole bunch of compiling errors and squiglies.

The trick is understanding the anatomy of a script. An SE script needs the outside wrapper in order to work. So:

// using...

namespace IngameScript
{
    partial class Program : MyGridProgram
    {
      // simply remove all the content in here, and paste the script here instead.
    }
}

That's all it takes!

Clone this wiki locally