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
Instead of throwing a NullReference, you can slo just do "return null;"
I got caught on that method too, and someone on youtube had to show me XD
public override MyObjectBuilder_EntityBase GetObjectBuilder(bool copy = false)
{
throw new NullReferenceException();
}
removes the errors and lets my code run now.
AppData\Roaming\SpaceEngineers\Mods\MyFirstMod\Data\Scripts\TestScript\TestScript\EvilSensor.cs(20,18) : error CS0534: 'TestScript.EvilSensor' does not implement inherited abstract member 'Sandbox.Common.Components.MyGameLogicComponent.GetObjectBuilder(bool)'
And when I impliment or override this method I'm not sure what to return for "MyObjectBuilder_EntityBase" I am brand new to this, and would love to start scripting for this game.