RTS Starter Kit

Tutorials

  • Information
  • Settings and Customization
  • Programming

API Reference

  • Boot
  • Gameplay Service
  • Storing
  • Units
    • Unit
    • Abilities Module
    • Animations Module
    • Electricity Module
    • Fog of War Module
    • Infantry
    • Refinery
    • AI Agent
    • Effects Module
    • Attack
    • Carry Module
    • Production
    • Turret
    • Harvester
    • Movement
    • Damageable
    • Enemies Search
    • Wheels
    • Selectable
    • Carryable Module
    • Production Line
    • Repair
  • Controls
  • Match Settings
  • Player
  • Shell
  • Shell Service
  • Abilities
  • Spawn Service
  • Players Service
  • Order
  • Fog of War
  • AI
  • UI
  • Scenarios
RTS Starter Kit
  • Units
  • Enemies Search
  • View page source

Enemies Search

public sealed class EnemiesSearch : UnitLogicModule

Searches for enemy targets for the unit’s Attack module — something like a basic AI for the unit. Runs on a short timer, checking the attack radius for enemies and, if a suitable one is found, marks it as the target to attack.

Also searches a wider radius for “bait” targets — enemies which cannot be attacked yet but might become reachable soon (for example, an air unit which could later fly into range).

Created automatically for any unit which has an attack module.

Previous Next

© Copyright 2026, Insane Systems.

Built with Sphinx using a theme provided by Read the Docs.