Space Engineers

Space Engineers

Enemy Detection Script - Turret Triggers Timer
20 Comments
Unruly 6 Oct, 2023 @ 8:07am 
Right. It checks for blocks named correctly. But it crashes with an exception if it doesn't find both blocks named correctly. That's all I was saying to Seth, now long gone..

Also, using a ctc only lets you detect from block weapons. I want to include detection from turrets.

Thank you for sharing your bps/mods, btw.
DaddyDamo  [author] 6 Oct, 2023 @ 12:43am 
the code doesnt do anything besides check if a turret which is currently named whatever is in the code has detected something, and if it has, trigger a timer block. dont know why people are still using this script, its obsolete with the new turret controller block.
Unruly 5 Oct, 2023 @ 12:02pm 
Hey Seth, it's been quite a while, but I'm sure the problem you were having is because you hadn't yet named both a timer block and a turret.
The code SHOULD detect when that's the case, but it doesn't.
Seth Stone 3 Jan, 2021 @ 12:53pm 
Looks like its broken to me, also getting an error when i try to use
AngelMarc 22 Oct, 2020 @ 4:24am 
Mata52 31 Jul, 2020 @ 9:34am 
Nice script. Is it somehow possible to make a grid that detects an enemy (with that turret) send commands to another grid (like a base)? As far as I know the timer block cannot be set to give commands to other grids automatically but maybe there is a different script for that or some magical way?
Scrap 8 Jan, 2020 @ 2:40pm 
I have an error when trying to use.
wyqydsyq 30 Nov, 2019 @ 12:06am 
@Hage Maoh set the timer block to rerun/recompile the PB running this script at the end of its action sequence
Hage Maoh 2 Sep, 2019 @ 3:28pm 
Really needs some way to reset, or a cooldown between detection events. Seems like the turret detects once, and then the whole setup needs to be taken down and rebuilt
Thunderous Broadside 30 Aug, 2019 @ 8:35pm 
"EnDec" wouldn't happen to be an Encoder Decoder, would it?
DaddyDamo  [author] 14 Apr, 2019 @ 10:10pm 
As far as im aware the update didnt break anything
gordon519 14 Apr, 2019 @ 2:48pm 
does it still work?
DaddyDamo  [author] 13 Mar, 2019 @ 7:04am 
Samathy, it sure does
Samathy 13 Mar, 2019 @ 6:39am 
Does this still work with the latest update?
DaddyDamo  [author] 24 Jan, 2019 @ 1:56am 
FLYGTUR, It only triggers once.
Flygtur 23 Jan, 2019 @ 5:42pm 
Does it trigger continoulsy, or just one frame?
Fish 21 Jan, 2019 @ 1:38am 
Great script man, planning on using this to deploy drones in my automated drone factory :P
OctoBooze 10 Jan, 2019 @ 5:32am 
My plan as well, so far it works wonders in my autoloading missile/drone defense network :)
DaddyDamo  [author] 9 Jan, 2019 @ 2:34pm 
Thanks! I mainly use this script alongside missile scripts for automatic missile defence
OctoBooze 9 Jan, 2019 @ 5:58am 
This script has amazing potential. Thank you, been waiting for this since forever!