Movement (basic)
A basic code example that shows you how to make the bot move between two locations.
MovementTask.cs
Task class that will be registered in PluginBase.cs and will be responsible for Movement in this plugin. While the player is not then this task will move between two Locations.
It is usually desirable to use the 'await' keyword as it will pause all execution until the task completes and then the result can be used. Not awaiting for tasks to complete can cause another function (e.g.: OnTick) to start while a task is running (e.g.: while still moving).
Don't know what async programming is? Check out Microsoft's documentation here.
Last updated