Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
https://github.com/malware-dev/MDK-SE/wiki/Api-Index
The errors I see most often are for displays and still using .WritePublicText and .WritePrivateText when that was replaced with .WriteText years ago.
For any new script writers reading this in the future. I had an issue where I tried directly referencing the properties of the blocks like "piston.Reverse()" => (this works (As it is a method but I tried doing it to properties)). But for getting and setting the max limit I tried "piston.UpperLimit = 9". (Using the https://spaceengineerswiki.com/Programming_Guide/Action_List#Piston as reference)
But to access the properties of most blocks you will need to get or set the values using block.getValue<type>("property name") and block.setValue<type>("property name", new value).
piston.setValue<float>("UpperLimit", 5f).
Its a lot of fiddle and figure out as you go. But for basic stuff thats almost all you need. There are some exceptions to this like piston.CurrentPosition and rotor.Angle that you can Access straight.
Okay thanks again you 3 that replied. It helped a lot.
Cheers!