If you mean literally move back and front in a position.
Here is a simple code :
rule("Spawn And Set Variable")
{
event
{
Ongoing - Each Player;
All;
All;
}
conditions
{
Has Spawned(Event Player) == True;
Is Dummy Bot(Event Player) == True;
}
actions
{
Event Player.A = 1;
}
}
rule("Move")
{
event
{
Ongoing - Each Player;
All;
All;
}
conditions
{
Has Spawned(Event Player) == True;
Is Dummy Bot(Event Player) == True;
}
actions
{
"keep changing in 1 or -1"
Event Player.A *= -1;
"Move forward if A is 1, Backward if A is -1, Don't forget to check the relative option"
Start Throttle In Direction(Event Player, Forward * Event Player.A, 1, To Player, Replace existing throttle,
Direction and Magnitude);
Wait(0.500, Ignore Condition);
Loop;
}
}
I don’t know why you result in teleport somewhere, Start Throttle In Direction can’t do that.
If you mean moving from position A to position B like player spawn and rejoin the battle area, You’ll need to give a path to the bot (Pathfinding).
Somebody already did it for the workshop, Further information here :