Bot System: Difference between revisions

From Vintage Story Wiki
no edit summary
No edit summary
No edit summary
Line 29: Line 29:
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>
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>


=== Immediate ===
* <code>/npc exec tp ''flexiblepos''</code> teleport to given position
* <code>/npc exec tp ''flexiblepos''</code> teleport to given position
* <code>/npc exec lookat rad</code> look in given direction in radians (0..2PI)
* <code>/npc exec lookat rad</code> look in given direction in radians (0..2PI)
Line 34: Line 35:
* <code>/npc exec playanim animcode</code> players given animation. Valid ones for animals, if supported by the respective animal: hurt, die, eat, walk, cry, shamble, lowshamble, sleep, sit, listen, hide, idletwitch, drill
* <code>/npc exec playanim animcode</code> players given animation. Valid ones for animals, if supported by the respective animal: hurt, die, eat, walk, cry, shamble, lowshamble, sleep, sit, listen, hide, idletwitch, drill


4. If you want to bot to run or remember a list of commands replace "exec" with "enq" to enqueue commands:
=== Queued ===
If you want to bot to run or remember a list of commands replace "exec" with "enq" to enqueue commands:
* <code>/npc enq [tp|lookat|goto|playanim] (see args above)</code>
* <code>/npc enq [tp|lookat|goto|playanim] (see args above)</code>
* <code>/npc start</code> to start command list
* <code>/npc start</code> to start command list
Confirmedusers, Bureaucrats, editor, Administrators
1,778

edits