Hello,
While I was testing things in workshop, I got the idea of making bots and teleport them to the closest variable’s position of a random player in the game, but I tried many ways to compare the positions and I got nothing.
I didn’t save my first try but it looked like this :
variables
{
global:
26: bots_spawn1
27: bots_spawn2
28: bots_spawn3
29: bots_spawn4
}
disabled rule("BOTS")
{
event
{
Ongoing - Global;
}
}
rule("creating the bots")
{
event
{
Ongoing - Global;
}
actions
{
Create Dummy Bot(Hero(Bastion), Team 2, 1, Vector(4.618, -2.642, -36.214), Vector(0, 0, 0));
Create Dummy Bot(Hero(Bastion), Team 2, 2, Vector(4.618, -2.642, -36.214), Vector(0, 0, 0));
Create Dummy Bot(Hero(Zenyatta), Team 2, 3, Vector(4.618, -2.642, -36.214), Vector(0, 0, 0));
Create Dummy Bot(Hero(Orisa), Team 2, 4, Vector(4.618, -2.642, -36.214), Vector(0, 0, 0));
Create Dummy Bot(Hero(Orisa), Team 2, 5, Vector(4.618, -2.642, -36.214), Vector(0, 0, 0));
}
}
disabled rule("SETTING UP THE BOTS SPAWN")
{
event
{
Ongoing - Global;
}
}
rule("global variables")
{
event
{
Ongoing - Global;
}
actions
{
Set Global Variable(bots_spawn1, Vector(12.292, -2.652, -9.304));
Set Global Variable(bots_spawn2, Vector(13.722, 2.869, 62.319));
Set Global Variable(bots_spawn3, Vector(-15.016, 3.264, 89.382));
Set Global Variable(bots_spawn4, Vector(-57.277, 6.397, 84.354));
}
}
Here is the code if you want: R3N4C