Space Engineers

Space Engineers

WeaponCore Alarm Script (BB)
56 則留言
BookBurner  [作者] 2023 年 9 月 27 日 上午 3:05 
Panda-X, can you provide the source on my discord, or to me directly? I will integrate it as soon as possible :)
Panda-X 2023 年 9 月 27 日 上午 1:38 
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  [作者] 2022 年 10 月 1 日 上午 7:56 
@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 2022 年 9 月 30 日 下午 12:25 
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 2022 年 7 月 19 日 上午 2:01 
and whips has no timer trigger
AN Marc Appledash 2022 年 7 月 19 日 上午 2:00 
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  [作者] 2022 年 7 月 19 日 上午 12:06 
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 2022 年 7 月 18 日 下午 1:17 
thank you for this script
AN Marc Appledash 2022 年 7 月 18 日 下午 1:16 
lets go it works this script is Exacly what i needed to make the script im using even more OP
AN Marc Appledash 2022 年 7 月 18 日 下午 1:09 
everything used by the script needs to be on the maingrid were the PB is
AN Marc Appledash 2022 年 7 月 18 日 下午 1:08 
this is a problem for almost every script i used that had to do with WC
AN Marc Appledash 2022 年 7 月 18 日 下午 1:08 
that made the script not see the weapon
AN Marc Appledash 2022 年 7 月 18 日 下午 1:07 
it is the fact that i had the PB on a sub grid but the weapon was on the main grid
AN Marc Appledash 2022 年 7 月 18 日 下午 1:06 
found the problem
AN Marc Appledash 2022 年 7 月 18 日 下午 1:02 
but other script i use this weapon with works fine and it gives the target data
BookBurner  [作者] 2022 年 7 月 18 日 下午 12:57 
might be linked to the weapon definition, WC weapons can provide targets if they are defined as such. Maybe certain weapons do not provide it.
AN Marc Appledash 2022 年 7 月 18 日 下午 12:56 
yes the fire
AN Marc Appledash 2022 年 7 月 18 日 下午 12:56 
but then why does the 800m range turret trigger the script for a ship that is 2km away and the other ship that has a 3Km range weapon does not trigger it?
BookBurner  [作者] 2022 年 7 月 18 日 下午 12:55 
that is strange, and when you enable weapons do they fire?
AN Marc Appledash 2022 年 7 月 18 日 下午 12:54 
but i have to ships with the script but only 1 of them sees the other
BookBurner  [作者] 2022 年 7 月 18 日 下午 12:54 
any threat level should trigger it, I have no distinction in the code, if turrets can fire, alarm gets triggered
AN Marc Appledash 2022 年 7 月 18 日 下午 12:54 
the sound i mean
AN Marc Appledash 2022 年 7 月 18 日 下午 12:54 
yes it dose now
AN Marc Appledash 2022 年 7 月 18 日 下午 12:53 
back to my other question what lvl does the threat needs to be for the script to trigger?
BookBurner  [作者] 2022 年 7 月 18 日 下午 12:53 
:D ok, so it works?
AN Marc Appledash 2022 年 7 月 18 日 下午 12:52 
for what ever reason
AN Marc Appledash 2022 年 7 月 18 日 下午 12:52 
it was the fact that the soundblock was not set to me xd
BookBurner  [作者] 2022 年 7 月 18 日 下午 12:50 
also check the sound block distance, sometimes it is not heard correctly when set to default 50 meters
AN Marc Appledash 2022 年 7 月 18 日 下午 12:48 
yes and i did not try that will do now
BookBurner  [作者] 2022 年 7 月 18 日 下午 12:44 
do you have underscore and not a space there? Also try assigning another group and changing the name in the script, just to be sure.
AN Marc Appledash 2022 年 7 月 18 日 下午 12:40 
no i the script sayes there are no soundblocks in the default group but i have 1 sound block in there with a sound selected
AN Marc Appledash 2022 年 7 月 18 日 下午 12:39 
does it only trigger when the threat is 9?
BookBurner  [作者] 2022 年 7 月 18 日 下午 12:37 
that is the default, but you can rename it in the script to whatever you use
BookBurner  [作者] 2022 年 7 月 18 日 下午 12:36 
group ALARM_SOUND ?
AN Marc Appledash 2022 年 7 月 18 日 下午 12:28 
but i wanted to use the sound block but it sayes there are no soundblocks in the group i have a sound set
AN Marc Appledash 2022 年 7 月 18 日 下午 12:27 
nvm i know why now the target was Threat 0
BookBurner  [作者] 2022 年 7 月 18 日 下午 12:20 
Hey, do you have anything bound to the groups? Try using in on something simple, like ALARM_LIGHTS and add some lights to that group. They should be off when no enemies are nearby. Once you encounter the enemy, they should light up. You can simulate it in creative by creating a battery + decoys and then transfer it to pirates for example.
AN Marc Appledash 2022 年 7 月 18 日 下午 12:03 
script sayes on screen all clear in the bottom
AN Marc Appledash 2022 年 7 月 18 日 下午 12:01 
hello i have a problem with the script

it looks like it does not fine the enemy and does nothing i have WC in the save with a WC Northwind weapon but the script sayes all clear do i need ot do something special to get it to work or?
Sanguin 2022 年 6 月 14 日 下午 5:04 
thank you very much good sir
BookBurner  [作者] 2022 年 6 月 14 日 上午 8:21 
hmmmmmm, it is, I now added the trigger when the alarm starts

but that looks more like a thing for the integration with the ON OFF groups, to have something like an option trigger_timers=true and when a timer is in the on / off group it gets triggered. But that is a bit bigger logical change
KampKounslr 2022 年 6 月 14 日 上午 7:27 
Question: Is it possible to have a trigger for when all targets are lost? Such as, we win the battle, I want to trigger a timer to play Fun Music on my Jukebox and turn off a bunch of stuff I don't need outside of combat.
BookBurner  [作者] 2022 年 6 月 14 日 上午 3:44 
no worries, will update it today :)
Sanguin 2022 年 6 月 13 日 上午 11:15 
I feel a separate group would be more widely applicable. apologies for getting back so late, busy day lol.
BookBurner  [作者] 2022 年 6 月 12 日 下午 8:08 
Which is the one you would like to see more?
BookBurner  [作者] 2022 年 6 月 12 日 下午 8:07 
Sanquin: It is possible to add it in one of two ways
a) have timers trigger when in the ALARM_ON group
b) have ALARM_TIMER group, which triggers assigned timers
Sanguin 2022 年 6 月 12 日 下午 1:09 
Is there any way to have this trigger a timer? Some of the weapons I am using have a long animation so they look kinda broken when turned on or off via this script.
BookBurner  [作者] 2022 年 4 月 5 日 上午 3:48 
updated to recent core systems version
BookBurner  [作者] 2022 年 2 月 13 日 上午 2:06 
But I am now working on other issues for our server, so It might take a while
BookBurner  [作者] 2022 年 2 月 13 日 上午 2:05 
Shaemous known issue, I have to rework it to properly connect to up to date core systems