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 Offensive

The AI Offensive block is a functional Automaton block in Space Engineers.

Use this block to let a drone perform extremely complex tasks including target identification, targeting priority, and execution of complex attack patterns. You determine what the Offensive AI shall consider a potential threat.

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

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 deactivates itself and 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 in cost to an ore detector. AI Blocks require 10 kW of power to work.

Requirements[]

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

If you want a faction to be detected as "Enemy", you need to have very low faction standing or declare war.

Usage[]

  1. Select whether you want to Attack either "Enemies" or "Enemies and Neutrals".
  2. To make the drone target players (boarders on foot or with jetpacks) as well, enable Target Characters. To target ships/drones/vehicles/stations, disable this option.
  3. Select a Target Priority:
    • To attack the nearest enemy first, select Closest. But this can prevent from joining the main battle.
    • To team up against the enemy capital ship or fighters, select Largest. But this will let enemy PBWs slip through.
    • To focus on clearing out enemy PBWs, select Smallest. But that also makes them focus on already defeated wrecks.
  4. Decide how often the drone should switch targets by setting the Target Search Interval. Set a value between 5 and 60 seconds. The default is 30.
    • If your drone follows the first enemy (or its drifting wreck...) too long, even after more threatening enemies have arrived, decrease this value.
    • If your drone pauses a lot or switches targets erratically, and never finishes the obvious targets off, increase this value.
  5. Tell the drone which enemy subsystem to consider a threat by setting the Threatening Subsystem:
    • Default - attack any enemy including wrecks
    • Propulsion - attack enemies with thrusters
    • Weapons - attack enemies with block weapons
    • Power systems - attack enemies with functioning batteries etc.
  6. Choose an Attack pattern:
    • Circle/Orbit
      Harrass slow enemies by circling them.
      • Circle Distance -- Pick a distance between 100 and 2000 metres. For example, set the distance to a bit less than your turret's maximum range.
      • Circle in P.Gravity -- Enable this to tell the drone to take planetary gravity into consideration and fly horizontally. Disable this in space to fly in any zero-g orbit.
    • Stay at Range
      Follow an enemy from a distance:
      • Min Distance -- Tells the drone to not get closer than this, for example, stay further away than the enemies turret lock range. Must be between 0-1999 metres and must be less than Max Distance.
      • Max Distance -- Try to not fall behind further than this. Must be between 1 and 2000 metres and must be more than Min Distance.
      • Evasive Maneuvers -- Enable this to have the drone move randomly within the min and max distance, in case the target is shooting back. Disable this to have it just follow steadily like a sniper.
    • Hit and Run
      Attack, break off to retreat, re-engage, repeat.
      • Break-off distance -- When the drone is this close to the enemy, it should retreat. Set a value between 50 to 2000 metres. Make sure this is larger than the braking distance of your drone, or you risk crashing into the enemy.
      • Retreat distance -- When the drone retreats, it should retreat this far from the enemy before starting another attack run. Set a value between 50 to 2000 metres.
      • Retreat timeout -- How long the drone should try to reach the retreat distance. After this time has passed, it will stop retreating and start the next attack run anyway. Set a value between 1 to 30 seconds.
      • Retreat angle -- The angle of the retreat vector relative to the attack run. Set a value between 0 to 180 degrees. 180 means "retreat by returning where you came from", and 0 means "retreat by continuing in a straight line from your attack run".
        Hit and Run, examples of different retreat angles
      • Pass over target -- If the engagement is taking place in planetary gravity, and the retreat angle is larger than 90 degrees, the drone chooses a retreat waypoint above the target.
    • Intercept
      Simply ram the enemy. Use this for PBW with warheads. In this case, you cannot choose a gun.
      • Choose a guidance type:
        • Basic: The drone will attempt to reach the current location of the target.
        • Target Prediction: The drone will attempt to reach the predicted intercept point: It will “lead” the target.
      • Override Collision Avoidance. Leave this enabled to let the PBW/missile hit the target. Disable this if the drone should attempt self preservation.
  7. Choose how you want the drone to use weapons. Weapons choices are not available for "Intercept" AI behavior.
    • The Facing Mode determines what side of the drone turns towards the enemy.
      • Use Static Weapons -- Add static weapons to the drone and it will turn them towards the enemy.
      • Manual Facing Priority -- Select one or more directions among front/backwards/up/down/left/right. For example, if the drone has automatic turrets for strafing, you want it to turn the sides with the best armor or lowest profile towards the enemy! If it has static weapons, make it turn those towards the enemy.
    • If you have selected "Use Static Weapons", select an Available Weapon from the list and click Add Weapon to make the drone use it. Or select a Selected Weapon from the list and click Remove Weapon to make the drone stop using it.
  8. Switch on AI Behavior to make this the active block of its type.

Best Practices[]

To choose targets before releasing the drones from their docking connectors, create Groups and add relevant actions to your cockpit toolbar or a Button Panel. For example:

  • Assign the AI Behavior on/off actions for a group containing all docked AI Flight and AI Offensive blocks.
  • Assign the three Set Target Priority: Closest/Smallest/Largest actions
  • Assign the three Target Propulsion/Power/Weapons actions

You can also split up your drones and assign different targets to subgroups. And so on, depending on your strategy.

The first selected weapon is used as the aiming reference when leading a moving target. If you mix weapon types, aiming quality will decrease for the other types, so stick to one weapon type per drone. If the drone uses static weapon types, make sure they point in the same forward direction.

Switch the target priority before releasing the drones: To attack an enemy base, do not keep the threat priority set to "propulsion". If you set the attack priority to "weapons", remember that this will exclude unarmed kinetic missiles.

To give drones different strategies, add at least one Event Controller and extra AI Offensive and AI Defensive blocks. For example, if the Event Controller detects that the ammo cargo is empty, either retreat to reload - or switch to "intercept" to turn this drone into a kinetic missile.

Recipe[]

Icon Block AI Offensive AI Offensive
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