Bot System: Difference between revisions

From Vintage Story Wiki
no edit summary
m (Design updated)
No edit summary
Line 38: Line 38:
Type one of either commands to execute a command right away
Type one of either commands to execute a command right away
* <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 (90° = 1.57, 180° = 3.14, etc.)
* <code>/npc exec goto ''flexiblepos'' animcode speed [animspeed]</code> walk to given position with given animation, given speed (normal walking speed is about 0.02) and given animation speed (default 1)
* <code>/npc exec goto ''flexiblepos'' animcode speed [animspeed]</code> walk to given position with given animation, given speed (normal walking speed is about 0.02) and given animation speed (default 1)
* <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
Confirmedusers
65

edits