Space Engineers

Space Engineers

十分な評価がありません
Inventory Light
   
アワード
お気に入り
お気に入り
お気に入りから削除
ファイルサイズ
投稿日
更新日
126.765 KB
2023年4月18日 18時36分
2024年2月6日 22時19分
9 項目の変更履歴 ( 表示 )

サブスクライブしてダウンロード
Inventory Light

解説
This simple script monitors the fill level of your cargo. As inventory fills or empties, the script changes the color of any light you have tagged. Color progresses from green (empty) to red (cargo full) to flashing red (now you are filling other things like connectors). The script will also display a simple percentage on any tagged LCD.

This is one of the very first scripts I wrote years ago.

Performance is adaptive to minimize sim impact. Below, 95%, the script only runs once every 100 frames. Above 95%, the script runs once very 10 frames.

Customization
After adding the script to a Programmable Block, check the Custom Data to adjust settings. Recompile the block after making changes.

SCRIPT TAG
Place this text anywhere in the custom name field of any light or LCD that you want this script to manage. Default value: [INVLT]

CARGO KEYWORD
Place this text anywhere in the custom name field of any cargo you want this script to monitor. Default value: cargo
Note: this is not a "tag" so it is not wrapped in brackets. It is a keyword so it just needs to appear anywhere in the block's Display Name. By using "cargo" the script will monitor all cargo containers.

INCLUDE DRILLS
Determines if drill inventory is included in the calculations. Default value: false

COLOR STEPS
This is the number of steps between the "empty" color (green) and the "full" color (red). This count includes both the "empty" and "full" color. So if you want "green -> yellow -> red," then you would put 3. Default value: 5.
Must be at least 2. Works best with small values, such as 3 or 5.

Other Mods You Might Like

Other Scripts You Might Like

Bugs, Suggestions, Questions, and Comments -> Discord[discord.gg]
I don't troubleshoot, give technical advice, or have discussions in the comment section. That's what the Discord is for. Comments get lost to time, but discord histories can be searched and referenced.
1 件のコメント
Will.Exe 2024年8月31日 14時01分 
Can I add this to cockpit screens for mining ships?