Space Engineers

Space Engineers

Automatic LCDs 2
Romans 2022 年 3 月 24 日 下午 6: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?
< >
目前顯示第 1-7 則留言,共 7
Kham 2022 年 3 月 24 日 下午 8: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 2022 年 3 月 25 日 上午 9:04 
引用自 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
最後修改者:Romans; 2022 年 3 月 25 日 上午 9:16
Kham 2022 年 3 月 25 日 上午 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 2022 年 3 月 25 日 上午 9:28 
引用自 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
最後修改者:Romans; 2022 年 3 月 25 日 上午 9:42
Kham 2022 年 3 月 25 日 上午 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 2022 年 3 月 25 日 上午 9:45 
引用自 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 2022 年 3 月 25 日 上午 9:51 
You're welcome. Sorry it wasn't quite the answer you were hoping for. :)
< >
目前顯示第 1-7 則留言,共 7
每頁顯示: 1530 50