Get nearby ships from antenna
Hi guys, Pretty new to scripting in SE. I want to write a script that warns me if an enemy ship is nearby. After grinding duckduckgo for bits and pieces of documentation the best thing i found was:...
View ArticleHow to retrieve item name?
This was what I found on the internet: string myItemName = myItem.Content.SubtypeName.ToString() But that doesn't work, it fails with the an error: 'MyInventoryItem' does not contain a definition for...
View ArticleProjection complete, done welding?
I'm trying to figure out how, in a PB, to tell that a projection is not just "complete", but that all the welding is done. Is there any way to do this, other than iterating over every block on the grid...
View Articleerror script IMyInventory.getItems
Hi, I have the error of "IMyInventory.getItems" in my script for sorting Container. I have tried many things but I can not solve this problem. I put the codes below for those who want to look at it....
View ArticleHow Do You Get X,Y,Z Values From Raycast.HitPosition?
As of recently, I have begun programming a simple laser designator that works with a drone that my friend built a while ago. The script is all done and I have successfully achieved a functional raycast...
View ArticleNeed Help With Guided Missile Script (Gyroscope Alignment To Vector3D)
Hey there, recently I have decided to take up the challenge of making a guided missile script / a gyroscope alignment system that looks towards a GPS coordinate. I am unsure of how I am supposed to go...
View ArticleRemote Control Commands, please help!
Hi, please can someone give me an example of a scipt with: Set up remote control´s block Precision Mode_On, Set Flight Mode to One Way, and set up Forward Direction to e.g. Forward? I can´t find...
View ArticleNewbie help
Been programming a long time, but never in C#. I'm trying to do the simplest of things in this language and just keep getting stone-walled at every attempt. I thought, as a way of getting introduced to...
View ArticleBlock scripts requests thread
As programmable blocks came to SE, and not all players are programmers, I guess a thread with block requests is reasonable. Basically, if you want a script on your block, post explanation here. Other...
View ArticleObject reference not set to instance of an object/Please help a nub programmer
Hey guys, I'm attempting my first decently sized script to automate a self-building elevator...I know...I know, its not worth it, and yada yada. However, I already have way too much time invested into...
View ArticleResource costs of components
Is there any API call that would tell me the resources needed to build the given component? E.g. the same info that the assembler shows when you hover over a component icon. Couldn't find anything that...
View ArticleIt's there any way to get blueprint cost in assembler?
I want to know how many component will be used in a assembler blueprint It's any way to get blueprint cost with in-game programing block?
View ArticleWhat am I doing wrong here?
So I'm designing a ship with gravity drives. I'm using this script. Everything's working fine. That is until it randomly decides to not work anymore, and spits back an error message roughly equaling...
View ArticleMDK: Malware's DevKit for Space Engineers
https://github.com/malware-dev/MDK-SE MDK-SE (Malware's Development Kit for SE) A toolkit to help with ingame script (programmable block) development for Keen Software House's space sandbox Space...
View ArticleGame bug? Or a script bug?
Hello guys. I'm troubled by the strange phenomenon that occurred when testing the program, so I want to rely on everyone's wisdom. As I am Japanese and not very good at English, this sentence may seem...
View ArticleAPI or example script for the new LCD?
With the new update, 6 different possible LCD's in cockpits, 2 on the programmable blocks... heck knows how many more are out there. So the question is how to access each of them? For example, I want...
View ArticleWriting to LCD Panels on the programmable block?
It says in the update that you can write onto the LCD's on the program block and other stuff, but I can't figure out how. Does anyone know?
View ArticleItem Transfer Script throwing exception
Hey guys, I've been trying to write a simple item transfer script so I can get the idea down before I write a larger script with this one incorporated into it. This one, I thought was going to be...
View ArticleNew cockpit LCDs usage
So..How do I use the new LCDs that are in the vanilla (and I assume also in modded) cockpits? I understand I need to use IMyTextSurface? How exactly I tie it to a block? What would be the difference...
View ArticleSetting custom name
I'm not sure if I'm not doing it right but the old .SetCustomName still works buts is obsolete and says to use the setter of "Customname" but neither .SetValue("Customname", ) or...
View Article