Space Engineers

Space Engineers

81 ratings
Automated Defence and Patrol Drone
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
4.232 KB
26 Sep, 2015 @ 1:56am
18 Dec, 2016 @ 1:52pm
3 Change Notes ( view )

Subscribe to download
Automated Defence and Patrol Drone

Description
**** Re-wright in progress ****
I am currently rewriting the script, new version will have alot more options and better functionality

11/25/2021:
Right now I am still building out the framework. There are several new features that were not in the old that this will have.

Current plan (A chuck already done on the new version):
-Unidirectional communication via antenna
-Ability to have a Base Station or Ship
-None, Auto, and Manual Patrol routes (Auto can generate from Base's location)
-Multiple Designations (Base or Drone)
-Drone to have Multiple modes (None, Defense, Fleet, Mining, Explore)
(Explore, Mining, and Fleet are future features, but adding into the framework to make it easier to work on)
-Easier setup of Indicator Lights, LCD Info panels, RC Blocks, ect
-Hoping to have a better object collision avoidance using trace from camera (noticed my drones colliding during early testing, and asteroid avoidance was a joke (got stuck))
-Configure settings via the Custom Data panel
-Much better info screen info
-Custom Data settings auto generated
-Timer block no longer needed

Questions and such? I can usually be reached on my Discord: https://discord.gg/nUxNA9xwqn
**** ---------------------------- ****

Automated Defence and Patrol Drone

**Features:**
- Enemy Auto Target after detection
- Automatically flys to enemy targets to engage them
- Will return home after turret is destroid
- Ability to interface with second Remote Control Block for patrol routs
- Will automatically break patrol to engage enemy
- Will return to last point in patrol to continue patrol
- Will return if exceeds max range
- Will return if runs out of ammo

The Drone's targeting range is only limited by the range of the sensor. Would suggest using Super Sensor: http://steamproxy.net/sharedfiles/filedetails/?id=504736273

**How to use**
- Place code in programing block
- Creat a timer to make the code loop
- Name the sensor, SENSOR
- Set Sensor to "Detect Enemy"
- Create at least one Remote Control block
- Add a turret to the drone
- Make sure turret is set to "Target Neutrals"

Home/Origin Position
If not home position has been set it will automatically store a new home position. If you need to reset it type the word "reset" (without quotes) in the Programing Blocks argumets section. This will reset the Home position.

Alternative way to set Home Position
Create a GPS position and copy it to clipboard. You can then past this string into the argiments field of the Programming Block. The code will automatically parse the string and use that location for its Home/Origin.

Indicator light and LCD panel are optional.

Indicator light will need to be named INDICATOR
LCD Panel will need to be named LCD Panel

if you want to add a patrol system, create a second Remote Control block and name it PATROL It will automatically use the waypoints in this for the patrol system.

**Future Plans**
- Follow function

GitHub: https://github.com/eldarstorm/SE_Defence_and_Patrol_Drone

Keen Forums: http://forums.keenswh.com/threads/automated-defence-and-patrol-drone-1-4.7390681/

Want to help support me?
https://www.patreon.com/eldarstorm
or http://radioactivecricket.com/?page_id=615
Popular Discussions View All (1)
22
8 Nov, 2021 @ 1:39am
Bug Reports
[TBU] eldarstorm
100 Comments
MrFox 17 Jun @ 9:09pm 
dead/
Dots 30 Jul, 2023 @ 11:59pm 
well, few years passed and still no new version yet :(
Ejcreeper 8 Aug, 2022 @ 8:52am 
Okay but uhhhh what about drones without turrets? example the gatling gun and reloadable rocket launcher
MrFox 21 Mar, 2022 @ 11:26pm 
Plz add a auto dock if fuel is low. I plan on having 6 of these :P
Spencer 20 Feb, 2022 @ 1:15am 
Might wanna build an example build. More often than not ppl don't try these things cause its a lot of effort for another broken drone script.
Spencer 20 Feb, 2022 @ 1:13am 
One thing I have always found surprising is the total lack of a working attack drone like this. I've been playing for years and aside from a few clever scripts that where short lived no one has maintained the mod let alone write up something special for it. There are 100 scripts for mining and such that are amazing such as PAM. I figured an attack drone would be no less important for ppl to write stuff for. That being said I've not tried this script yet but only hope it works as you say friend :)
Zorgges 1 Feb, 2022 @ 3:40am 
Doesn't work for me and presenting errors
[TBU] eldarstorm  [author] 13 Dec, 2021 @ 8:42pm 
Will be taking a look at making it work with weaponcore, but that may be for the next version
Ryan Gosling (fr) 11 Dec, 2021 @ 11:51am 
great script, but if you can make it works with weaponcore you will be god. I rlly need that XD
[TBU] eldarstorm  [author] 25 Nov, 2021 @ 8:58pm 
@OPERATOR how would you want to have it attack manually? Also, if you want you can join me in my Discord, its linked above.