Space Engineers Wiki

New Official Space Engineers wiki

A new official wiki is now available! - at https://spaceengineers.wiki.gg/

This wiki is deprecated in favour of it.

READ MORE

Space Engineers Wiki
Advertisement
Icon Block AI Defensive

The AI Defensive block is a functional Automaton block in Space Engineers. Use this block for the easy automation of complex defensive behaviors such as when (and how) a drone shall flee combat, and what locations to fall back to. You choose what the Defensive AI shall consider a potential threat.

This AI Block is of type "Combat" and provides waypoints to AI Blocks of type "Move". For other Combat blocks, see AI Offensive.

When an AI block of type "Combat" detects an enemy within 2500m (line of sight), it deactivates any AI blocks of type "Task" and activates itself; when no enemies are nearby, it returns control to the AI Task block.

Construction[]

If Progression is on, build a Basic Assembler and some lighting blocks first to unlock this block. The block is 1x1x1 blocks in size and it exists for small and large grid. It can attach to other blocks on all sides. The block is not expensive and can be built in early game, similar to an ore detector. AI Blocks require 10 kW of power to work.

Requirements[]

The AI Defensive block depends on the presence of other AI Blocks: Build an AI Flight block and configure it as well.

Enemy detection depends on faction standing.

Usage[]

  1. Under Defend Against select whether you want this drone to react only to "Enemies" or to "Enemies and Neutrals".
  2. Under With Subsystem, choose whether you want the drone to consider only enemies a threat that have Power Blocks, or Propulsion, or Weapons. By default any enemy block is considered a threat, even unarmed/drifting/powerless.
  3. Under Lock target, choose whether you want the drones to target lock enemies that meet the “Defend Against” and “With Subsystem” conditions.
  4. Choose whether you want the drone to Target Characters (boarders on foot or with jetpacks) as well, or just drones and ships.
  5. Choose a Flee trigger to give the drone a retreat strategy:
    • Never - The drone never flees.
      Examples: Cheap mass-produced PBW and guided Decoys.
    • Always - The drone flees when it detects an enemy within 2500m, and the "Defend Against" and "Subsystem" conditions are met.
      Example: An unarmed mining drone with valuable cargo retreats when an armed enemy with (Weapon subsystems) approaches.
    • When being target locked - The drone only flees when an enemy meets the "Defend Against" and "Subsystem" conditions and also target locks the drone.
      Example: Disable this for decoying/tanking drones. Enable this if the drone participates in the battle but isn't tanky enough to withstand focused attention.
    • When taking damage - the drone only flees when it detects an enemy within 2500m and the "Defend Against" and "Subsystem" conditions are met and it receives damage.
      Example: If a drone is tanky, it doesn't mind being target locked and drawing attention from its fellow drones, but it smartly retreats before it risks destruction.
  6. Choose a Flee Destination
    • Away from Target – Flee in a random direction, opposite from the threat
        • Flee distance – Flee up to this distance from the last known location of the threat.
        • Random Deviations Angle – serpentine to become hard to track.
        • Random Deviations Interval – How often the AI will do Random Deviations.
    • To GPS / Beacon – travel to the selected GPS / Beacon coordinates.
      • Flee To: Select a waypoint to return to when the flee action is triggered.
      • Flee waypoint size: The grid must arrive at or within this waypoint. The waypoint can be resized via a slider from 0 to 500m.
  7. Click Set Up Actions to define actions it should do when it detects a target (first slot), and when it loses sight of the target (second slot).
    Tips: Use Timer Blocks to define several actions. The action can also be to switch on AI Offensive behaviour instead of (default) fleeing.
  8. Under Flee to, select a retreat location from a list of your beacons or GPS coords. This could be the hangar of a support ship with welders and ammo supplies.
  9. Flee waypoint size: Choose a value between 0 to 500 metres.
    • If the drone can retreat to a Safe Zone, set this to a bit less than the Safe Zone radius.
    • If you want the drone to be refueled/repaired/restocked, set this to zero because it needs to dock exactly to the Connector on the waypoint.
  10. Switch on AI Behavior to make this the active block of its type.

Tip: Add an Event Controller that monitors an attack drone's status and enables the defensive behaviour only when the drone has lost too many weapon blocks or has run out of power or ammo.

Recipe[]

Icon Block AI Defensive AI Defensive
ComponentLarge Ship/Station
Required
Large Ship/Station
Optional
Small Ship
Required
Small Ship
Optional
Icon Item Interior Plate Interior Plate202
Icon Item Computer Computer2010
Icon Item Motor Motor42
Icon Item Detector Components Detector Components204
Icon Item Construction Comp. Construction Comp.305
Icon Item Steel Plate Steel Plate202


Blocks

Functional Blocks

Cockpits & Control
Icon Block Cockpit Cockpit, Icon Block Fighter Cockpit Fighter Cockpit, Icon Block Control Station Control Station, Icon Block Flight Seat Flight Seat, Icon Block Helm Helm, Icon Block Saddle Cockpit Saddle Cockpit, Icon Block Saddle Cockpit Compact Saddle Cockpit Compact, Icon Block Cab Cockpit Cab Cockpit, Icon Block Buggy Cockpit Buggy Cockpit, Icon Block Rover Cockpit Rover Cockpit, Icon Block Passenger Seat Passenger Seat, Icon Block Control Panel Control Panel, Icon Block Control Panel Pedestal Control Panel Pedestal, Icon Block Vertical Button Panel Vertical Button Panel, Icon Block Sci-Fi One-Button Terminal Sci-Fi One-Button Terminal, Icon Block Sci-Fi Four-Button Panel Sci-Fi Four-Button Panel, Icon Block Sci-Fi Control Panel Sci-Fi Control Panel, (Icon Block Inset Button Panel Inset) Icon Block Button Panel Button Panel, Icon Block Button Panel Pedestal Button Panel Pedestal, Icon Block Remote Control Remote Control, Icon Block Custom Turret Controller Custom Turret Controller

Automation
Icon Block Sensor Sensor, Icon Block Timer Block Timer Block, Icon Block Programmable Block Programmable Block, Icon Block Event Controller Event Controller, Icon Block Emotion Controller Emotion Controller, Icon Block AI Basic AI Basic, Icon Block AI Flight AI Flight, Icon Block AI Defensive AI Defensive, Icon Block AI Offensive AI Offensive, Icon Block AI Recorder AI Recorder

Communication
Icon Block Antenna Antenna, Icon Block Beacon Beacon, Icon Block Round Beacon Round Beacon, (Icon Block Top Mounted Camera Top Mounted) Icon Block Camera Camera, Icon Block Laser Antenna Laser Antenna, Icon Block LCD Panel LCD Panel, Icon Block Corner LCD Corner LCD, Icon Block Text Panel Text Panel, Icon Block Wide LCD Panel Wide LCD Panel, Icon Block Transparent LCD Transparent LCD, Icon Block Sci-Fi LCD Panel Sci-Fi LCD Panel, Icon Block Holo LCD Holo LCD, Icon Block Inset LCD Panel Inset LCD Panel, Icon Block Sloped LCD Panel Sloped LCD Panel, Icon Block Curved LCD Panel Curved LCD Panel, Icon Block Ore Detector Ore Detector, Icon Block Sound Block Sound Block

Defense & Offense
Icon Block Decoy Decoy, Icon Block Gatling Gun Gatling Gun, Icon Block Gatling Turret Gatling Turret, Icon Block Interior Turret Interior Turret, Icon Block Rocket Turret Rocket Turret, Icon Block Reloadable Rocket Launcher Reloadable Rocket Launcher, Icon Block Rocket Launcher Rocket Launcher, Icon Block Artillery Artillery, Icon Block Autocannon Autocannon, Icon Block Artillery Turret Artillery Turret, Icon Block Autocannon Turret Autocannon Turret, Icon Block Railgun Railgun, Icon Block Assault Cannon Assault Cannon, Icon Block Assault Cannon Turret Assault Cannon Turret, Icon Block Target Dummy Target Dummy, Icon Block Warhead Warhead, Icon Block Explosive Barrel Explosive Barrel

Power
Icon Block Battery Battery, Icon Block Small Battery Small Battery, Icon Block Large Reactor Large Reactor, Icon Block Small Reactor Small Reactor, Icon Block Solar Panel Solar Panel, Icon Block Colorable Solar Panel Colorable Solar Panel, Icon Block Hydrogen Engine Hydrogen Engine, Icon Block Wind Turbine Wind Turbine, Icon Block Twin-Blade Wind Turbine Twin-Blade Wind Turbine

Life Support
Icon Block Medical Room Medical Room, Icon Block Corner Medical Room Corner Medical Room, Icon Block Survival Kit Survival Kit, Icon Block Cryo Chamber Cryo Chamber, Icon Block Inset Cryo Room Inset Cryo Room, Icon Block Oxygen Farm Oxygen Farm, Icon Block Interior Light Interior Light, Icon Block Offset Light Offset Light, Icon Block Spotlight Spotlight, Icon Block Offset Spotlight Offset Spotlight, Icon Block Inset Light Inset Light, Icon Block Air Vent Air Vent (Icon Block Air Vent Full Full), Icon Block Air Vent Fan Air Vent Fan (Icon Block Air Vent Fan Full Full)

Mobility
Icon Block Gyroscope Gyroscope, Icon Block Atmospheric Thruster Atmospheric Thruster, Icon Block Ion Thruster Ion Thruster, Icon Block Hydrogen Thruster Hydrogen Thruster, Icon Block Parachute Hatch Parachute Hatch, Icon Block Short Wheel Suspension 1x1 (Short) Icon Block Wheel Suspension 1x1 Wheel Suspension 1x1, Icon Block Short Wheel Suspension 2x2 (Short) Icon Block Wheel Suspension 2x2 Wheel Suspension 2x2, Icon Block Short Wheel Suspension 3x3 (Short) Icon Block Wheel Suspension 3x3 Wheel Suspension 3x3, Icon Block Short Wheel Suspension 5x5 (Short) Icon Block Wheel Suspension 5x5 Wheel Suspension 5x5, Icon Block Offroad Wheels Offroad Wheels

Mining & Manufacturing
Icon Block Basic Refinery Basic Refinery, Icon Block Refinery Refinery, Icon Block Basic Assembler Basic Assembler, Icon Block Assembler Assembler, Icon Block Drill Drill, Icon Block Grinder Block Grinder Block, Icon Block Welder Block Welder Block, Icon Block Projector Projector, Icon Block O2 H2 Generator O2/H2 Generator, Icon Block Oxygen Farm Oxygen Farm, Icon Block Yield Module Yield Module, Icon Block Power Efficiency Module Power Efficiency Module, Icon Block Speed Module Speed Module

Storage
Icon Block Large Cargo Container Large Cargo Container, Icon Block Medium Cargo Container Medium Cargo Container, Icon Block Small Cargo Container Small Cargo Container, Icon Block Oxygen Tank Oxygen Tank, Icon Block Hydrogen Tank Hydrogen Tank, Icon Block Store Store, Icon Block Contracts Block Contracts Block

Inventory Management
Icon Block Connector Connector, Icon Block Small Connector Small Connector/Ejector, Icon Block Collector Collector, Icon Block Conveyor Junction Conveyor Junction, Icon Block Conveyor Tube Conveyor Tube Icon Block Reinforced Conveyor Tube (Reinforced), Icon Block Curved Conveyor Tube Curved Conveyor Tube Icon Block Reinforced Curved Conveyor Tube (Reinforced), Icon Block Conveyor Tube T Junction Conveyor Tube T Junction Icon Block Reinforced Conveyor Tube T Junction (Reinforced), Icon Block Conveyor Sorter Conveyor Sorter; Icon Block Small Conveyor Small Conveyor, Icon Block Small Conveyor Tube Small Conveyor Tube Icon Block Small Reinforced Conveyor Tube (Reinforced), Icon Block Small Curved Conveyor Tube Small Curved Conveyor Tube Icon Block Small Reinforced Curved Conveyor Tube (Reinforced), Icon Block Small Conveyor Tube T Junction Small Conveyor Tube T Junction Icon Block Small Reinforced Conveyor Tube T Junction (Reinforced), Icon Block Conveyor Sorter Small Conveyor Sorter; Icon Block Conveyor Frame Conveyor Frame, Icon Block Conveyor Converter Conveyor Converter

Mechanical Blocks & Gravity Control
Icon Block Advanced Rotor Advanced Rotor, Icon Block Rotor Rotor, Icon Block Piston Piston, Icon Block Hinge Hinge, Icon Block Landing Gear Landing Gear, Icon Block Magnetic Plate Magnetic Plate, Icon Block Merge Block Merge Block, Icon Block Artificial Mass Artificial Mass, Icon Block Gravity Generator Gravity Generator, Icon Block Spherical Gravity Generator Spherical Gravity Generator, Icon Block Safe Zone Safe Zone


Advertisement