

There are many different ones and we will ignore it for now.Space Engineers is an open world sandbox game defined by creativity and exploration. "IMyMotorStator": This should sound familiar. To be treated as "float" you have to write an "f" behind the number, like "4.9f". If you assign a number value in your script it's usually treated as "double". I'd advise to use float unless a method requires double as input. This won't be that important for basic scripting. It's similar to "float" but the number can be larger. "float" : This is also a number but it has decimal places. The value doesn't get rounded instead all decimal places will be just cut off. "int" : This is a number but without any decimal places. An example would be to save text into a variable to display it on an LCD screen later.


"bool": This type of variable can only have one out of these two values: It's either "true" or "false". The second one will be to give the rotor its velocity. The first one is to set its maximum angle to 45 degrees. We want it to rotate to 45 degrees with a positive velocity. Let's move the rotor to a certain point now. Now every time we use the variable 'Rotor' in our script the game adresses our rotor block. This may sound unnecessary but just use it to have a safer script. If you forget this and there is for example an LCD panel named "Super mega station rotor" it would get assigned to the variable. At the end we write the type again in order to make sure the block that is getting assigned to our variable has the correct type. Don't worry about the text too much, we'll come back to that later. We simply write the exact name of the block between the two "". This part is the method to adress the block in our grid. To give a variable a value we simply use the "=" symbol. The type only gets mentioned the first time we create a variable. Rotor = GridTerminalSystem.GetBlockWithName("Super mega station rotor") as IMyMotorStator
