Loner-Strike's bots play any mode you make, but they only know what the game and your mode tell them. This guide covers what they understand by themselves, and the Bots nodes that tell them what matters in your mode. A goal is a strong suggestion, not a script: bots still fight on the way and keep their own judgment.
What bots understand by themselves
- The game: teams, enemies, weapons, buying, the bomb, hostages and the VIP. In a deathmatch they play for themselves; in team modes they play the objective.
- The map: where to walk, hide and look, from its nav and map knowledge (Map Doctor and Nav Fixer make these for new maps).
- Components: capture points, extraction zones, checkpoints, loot containers, supply drops, perk machines, upgrade benches, mystery boxes and traps. Loner-Strike's components plugin tells bots about each one, so you don't need to.
- Creatures: bots fight the mode's creatures where creatures attack (turn it off with Bots: Fight Creatures).
- Interactables made with Bots may use on: bots press them now and then when it's calm.
- Buttons and events: bots press buttons too, so Player Pressed Button hears them (untick Include bots for people only), and every event runs for bots as for people.
What they don't know: anything your graph adds. A prop that heals on touch, a volume that scores a point, an NPC with a quest. That's what the nodes below are for.
Bots: Goal
Bots: Goal gives bots something to do at an entity: Defend it, Capture it, Use it (hold E), Loot it, Go and hold there, or Hunt it (a player or creature, wherever it goes). Pick which bots (all, a team, the wired bot, or a tag), a Priority (0-100), how long, and how close counts.
A King of the Hill flag that both teams fight over:
Round Started → Spawn Prop (flag model, At entity: hill marker) → Bots: Goal (All bots, Capture it, At: Prop, Priority 80, For 0)
Bots: Clear Goals takes goals back (all, or one kind).
Bots: Offer
Bots: Offer tells bots something here can be bought or used for a price. They take it like a person would: when they can afford it and it's calm. What it is:
- A perk, an upgrade bench, a mystery box, a trap's switch, a turret spot: bought for Price.
- An interactable: they walk up and press E on it.
- A pickup: they walk over it. Price is how much they want it (0-100); Order says what it is (0 an item, 1 a weapon, 2 health, which hurt bots want most).
A health pack on a trigger volume, offered as a pickup:
Spawn Prop (medkit; keep it in Pack) → Spawn Trigger Volume (At entity: Pack, Name: "medkit") → Bots: Offer (A pickup, At: Pack, Price 70, Order 2)
Begin Overlap ("medkit") → As Player (Who) → Success → Set Health (Player, 100) → Bots: Clear Offer (At: Pack) → Remove Entity (Pack) → Remove Trigger Volume (Volume)
Bots: Clear Offer takes an offer back once it's used up.
Orders for one bot
- Bot Follow: follow a player for some seconds (an escort, a squadmate).
- Bot Go To: go to the entity with this name; Bot Hold: hold where it is.
- Bot Free: back to doing as it likes.
- Bot Nature and Bot Trait: read a bot's nature (skill, aggression, teamwork, greed, playstyle) to pick who gets which job.
Talked To NPC → Branch (Is Bot) → False → For Each Player (Bots) → Each → Bot Follow (Bot: Player, Follow: the talker, 60 s)
Each of these, and every Bots node with a Personality influence pin, can let the bot's personality decide: 0 they obey exactly, 50 as usual, 100 their personality and skill decide (a careful bot may turn a risky job down; a slow one starts later).
Phases, layers, friends and tags
- Bots: Phase: Loot (nobody is an enemy: they gear up and keep apart), Fight, or back to Normal. A battle royale's quiet start, then the fight.
- Bots: Prefer Layer: where they look for loot and hold: Below (tunnels, basements), Surface, High (roofs, ridges), or their own choice.
- Bots: Tag gives a player a tag (a squad, a job), so other Bots nodes can name them all at once. Bots: Friends makes two groups friends (they won't attack each other) or not.
- Bots: Don't Buy: skip the buy time and get on with the mode.
- Add Bots and Remove Bots: more or fewer bots, never more than the free slots.
Round Started → Bots: Phase (Loot) → Delay (45) → Bots: Phase (Fight)
Bots Avoid Area
Bots Avoid Area marks a place bots keep away from: a Position with a Radius, or At entity, which rides along (a carrier, a burning player, a trigger volume) and ends when it's gone. Strength 5 and up: they won't stand in it; below 5 they only path round it. The same tag again moves or changes it; Bots Stop Avoiding ends it. Areas bots avoid at once is a comfort limit (16 to start; the bot brain keeps 32).
Spawn Projectile → On Hit → Explosion → Bots Avoid Area (Position: Hit Position, Radius 200, Strength 8, Seconds 10, Tag "fire")
For projectiles, ticking Dangerous to bots on Spawn Projectile is enough for them to dodge it.
"Bots won't know about…"
The Problems tab warns when your mode makes something bots could use that nothing tells them about:
- An interactable with Bots may use off (Spawn Interactable, or Create Component without
bots=1). - An NPC your mode talks through (it has Talked To NPC) with no Bots: Goal or Bots: Offer at it.
The warning reads like "Bots won't know about the interactable “Pull the lever”. Add an Offer to bots or a Bot goal." It offers the fix, and Don't warn for this one when bots shouldn't use it (a secret switch). It's a warning, never an error. Components bots already know about (and shops, which bots can't pick from) are never flagged.
Bots and Say and Choose
Bots answer Say and Choose: after a moment, a bot picks one of the replies, so a quest flow runs for bots too. Menus from Menu and votes need a person to answer: bots won't. If a reply should only be for people, check Is Bot first.
The starter library and bots
Each starter library item (My library, built in) says in its note what bots do with it:
- Ability with Cooldown has Bot Wants Ability: wire it from a Repeat and bots use the ability in fights. Dash, Double Jump and Fireball work with it.
- Health Pack and Weapon Pickup are offered to bots as pickups; hurt bots want health most.
- Capture Zone is a capture goal for every bot.
- Proximity Mine puts a Bots Avoid Area on each mine; Burn, Slow and Freeze makes bots keep clear of a burning player.
- Hot Potato: bots chase the holder, and a bot holder runs.
- Jump Pad and Teleporter Pair: bots that walk in use them.
- Quest Step Tracker: bots never start quests.
Copy one into your mode to see how it steers bots, then change it however you like.
Check it with bots
Press Playtest with a few bots and watch: the nodes light up as bots take goals and offers. A Test run plays your mode on a hidden server with bots. When you publish, set How well bots play it; Community shows it as a badge.
See also
- Spawning and transforms: the things you point goals at.
- Bots nodes and NPCs in the reference.
- Bots and creatures, NPCs and interactables and How the bots work in the docs.