Space Engineers

Space Engineers

评价数不足
CAT Red-Alert Basic
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
1.674 KB
2015 年 2 月 5 日 下午 6:01
2015 年 2 月 17 日 上午 5:39
4 项改动说明 ( 查看 )

订阅以下载
CAT Red-Alert Basic

在 Loues.S.Cat 的 1 个合集中
CAT Scripts
12 件物品
描述
A basic script requiring a Sensor, a spcialy named Interior Light and a specialy named Sound Block.
This script uses prefix filtering to ensure it only acts on parts of the current ship and not thoseof docked ships or stations! or you can give parts of your ship a special prefix and have the script target those!
The default prefix is '[CAT]' this can be changed in the 'SHIP_PREFIX' variable
Check the script colection to find a script to auto add the prefix of your choice to all blocks.

The sensor should be set to turn on the specialy named light when it detects a hostile and turn off the light when it no longer detects a hostile.
The script when run, checks the on/of status of the light and if it has changed the script will run an update.
if the special interior light is on, the script will change all interior light colours to red, and turn on the sound block as wel as closing all doors.
if the special interior light is off, the script will change al interior lights to white and turn off the sound block.

There is a variable 'INT_LIGHT_KEYWORD' that can be set to a string value to enable filtering so only specific interior lights will have their colour set by the script, or it can be set to null to disable filtering

The script isnt made for a particular context, it is just a basic outline to work from.
1 条留言
Midnyte 2016 年 10 月 8 日 下午 11:21 
this doesnt work for me sadly