Bot System: Difference between revisions

From Vintage Story Wiki
no edit summary
(Created page with "Vintage Story comes with some rudimentary interface to control creatures and humanoids through commands, which is mostly aimed for recordings. Here's how to use it: 1. Spawn...")
 
No edit summary
Line 1: Line 1:
Vintage Story comes with some rudimentary interface to control creatures and humanoids through commands, which is mostly aimed for recordings. Here's how to use it:
Vintage Story comes with some rudimentary interface to control creatures and humanoids through commands, which is mostly aimed for recordings. Here's how to use it:


1. Spawn in a bot. Only some creatures are supported, here's a list:
== Spawn in a bot ==
Only some creatures are supported, here's a list
* /entity spawn playerbot
* /entity spawn playerbot
* /entity spawn animalbot-wolf-male
* /entity spawn animalbot-wolf-male
Line 20: Line 21:
* /entity spawn animalbot-drifter-nightmare
* /entity spawn animalbot-drifter-nightmare


2. Right click the creature to select it. You can now tell it to execute commands or define a list of commands to execute in a loop
== Select a bot ==
Right click the creature to select it. You can now tell it to execute commands or define a list of commands to execute in a loop


3. Type one of either commands to execute a command right away
== Instruct the bot ==
Legend: ''flexiblepos'' means either x y z coordinates as defined in the coordinate hud, absolute coordinates through =x =y =z or coordinates relative to the player with ~x ~y ~z, you can also do ~ ~ ~ do use exactly the players position.
Type one of either commands to execute a command right away
Legend: ''flexiblepos'' means either x y z coordinates as defined in the coordinate hud, absolute coordinates through =x =y =z or coordinates relative to the player with ~x ~y ~z, you can also do ~ ~ ~ do use exactly the players position.<br>


* <code>/npc exec tp ''flexiblepos''</code> teleport to given position
* <code>/npc exec tp ''flexiblepos''</code> teleport to given position
Confirmedusers, Bureaucrats, editor, Administrators
1,795

edits