Space Engineers

Space Engineers

Not enough ratings
WeaponCore Alarm Script (BB)
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
398.265 KB
22 Dec, 2020 @ 1:51am
14 Jun, 2022 @ 8:17am
5 Change Notes ( view )

Subscribe to download
WeaponCore Alarm Script (BB)

In 1 collection by BookBurner
Maintained/Created by BookBurner
24 items
Description
When the enemy is close enough that weaponcore picks up enemy targets, it reacts based on the groups you have set up.

add the script to the programmable block

Add your desired blocks to the alarm groups, each alarm group is designed for something different

ALARM_SOUND
sound blocks found in this group will play periodically during alarm

ALARM_LIGHTS
lights in this group will be turned on during alarm, set your own red/blue/bron alert ;)

ALARM_ON
these blocks will be turned on if possible during alarm, say, weapons?

ALARM_OFF
these blocks will be turned off during alarm, to save power for other system perhaps

ALARM_TIMER
Timer blocks within this group get triggered when the timer hits the threshold (same as for sound blocks)

pick your warning sound, distance, volume, for your sound blocks, script is only dumbly playing what you have set there.



PS: if you have an urgent need, tweak playEverySec variable (playback frequency)

If you have further questions, you can visit my discord: https://discord.gg/6Gd6W8TcJb
56 Comments
BookBurner  [author] 27 Sep, 2023 @ 3:05am 
Panda-X, can you provide the source on my discord, or to me directly? I will integrate it as soon as possible :)
Panda-X 27 Sep, 2023 @ 1:38am 
Hey I've amended this script in order to set a threat level. I was going to post it but happy to just contribute to the source?
BookBurner  [author] 1 Oct, 2022 @ 7:56am 
@miki, it detects weaponcore targets, so, if your weapons are set to target neutrals, it should detect them as well, if it doesn't I can surely alter it :)
Miki 30 Sep, 2022 @ 12:25pm 
hi dose this script detect everything or will it just work wen there are enemy's around and not activate if neutrals are about
AN Marc Appledash 19 Jul, 2022 @ 2:01am 
and whips has no timer trigger
AN Marc Appledash 19 Jul, 2022 @ 2:00am 
yeah but now that i know why it did not work im happy that it works now

i was looking at a lot of script for timer trigger but this on works best

i tryed to use the LIDAR mapping script but that dont work with WC because WC does bad stuff to cams
BookBurner  [author] 19 Jul, 2022 @ 12:06am 
sorry for not responding sooner, I fell asleep :D but yeah, subgrids can cause problems for most scripts, since they are technically a new grid. You can check blocks and stuff on interconnected grids, but I don't do that :D.
AN Marc Appledash 18 Jul, 2022 @ 1:17pm 
thank you for this script
AN Marc Appledash 18 Jul, 2022 @ 1:16pm 
lets go it works this script is Exacly what i needed to make the script im using even more OP
AN Marc Appledash 18 Jul, 2022 @ 1:09pm 
everything used by the script needs to be on the maingrid were the PB is