Space Engineers

Space Engineers

Automatic LCDs 2
Romans 24. mar. 2022 kl. 18:46
Retrieve custom block states
Hello! Is there a way to retriev, like the working command, the state of other options?
Like "SHow in HUD" if is it on or off?
< >
Viser 1-7 af 7 kommentarer
Kham 24. mar. 2022 kl. 20:35 
The PropBool command can get a lot of the properties for varying blocks.

The guide explains how to use the command and has a link to a full list of properties assigned to each block type. Keep in mind PropBool only works with boolean type properties.

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=407158161
Romans 25. mar. 2022 kl. 9:04 
Oprindeligt skrevet af Kham:
The PropBool command can get a lot of the properties for varying blocks.

The guide explains how to use the command and has a link to a full list of properties assigned to each block type. Keep in mind PropBool only works with boolean type properties.

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=407158161

It doesn't work for custom mod blocks
Sidst redigeret af Romans; 25. mar. 2022 kl. 9:16
Kham 25. mar. 2022 kl. 9:26 
It depends on the mod and the block. Most custom mod blocks have to be defined to the game as a vanilla block type because we can't actually create custom block types. Though if they add custom properties to the block then the script may not be able to read those without specific support for the mod in question.

MMaster has said many times he does not intend to add functions for specific mods because those mods would become a dependency and not everyone who uses the script would necessarily want to use those mods.

The way you phrased your question didn't make any mention of mod blocks just asked how to get the properties of things like show on hud. Which mod are you specifically trying to get properties from and what properties are you trying to read?
Romans 25. mar. 2022 kl. 9:28 
Oprindeligt skrevet af Kham:
It depends on the mod and the block. Most custom mod blocks have to be defined to the game as a vanilla block type because we can't actually create custom block types. Though if they add custom properties to the block then the script may not be able to read those without specific support for the mod in question.

MMaster has said many times he does not intend to add functions for specific mods because those mods would become a dependency and not everyone who uses the script would necessarily want to use those mods.

The way you phrased your question didn't make any mention of mod blocks just asked how to get the properties of things like show on hud. Which mod are you specifically trying to get properties from and what properties are you trying to read?

I'm trying with nanobot buildandrepair system mod(https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=857053359&searchtext=nanobot+build+and+repair), for example the Show Area boolean option.

And for same mod i would also would display if the active mode, is Walk or Fly, but it is not boolean
Sidst redigeret af Romans; 25. mar. 2022 kl. 9:42
Kham 25. mar. 2022 kl. 9:42 
Ok yeah it wont work for that. The Build and Repair block, as far as block definition is concerned, is a ship welder so the script can only read properties which would normally appear on that block type. The script isn't aware of the custom properties added to the block.
Romans 25. mar. 2022 kl. 9:45 
Oprindeligt skrevet af Kham:
Ok yeah it wont work for that. The Build and Repair block, as far as block definition is concerned, is a ship welder so the script can only read properties which would normally appear on that block type. The script isn't aware of the custom properties added to the block.
Ok thank you so much
Kham 25. mar. 2022 kl. 9:51 
You're welcome. Sorry it wasn't quite the answer you were hoping for. :)
< >
Viser 1-7 af 7 kommentarer
Per side: 1530 50