function fxDTSBrick::doBotTeleport(%obj,%target,%dir,%velocityop,%rel,%bot)
if(isobject(%obj.hBot))
{
%bot = %obj.hBot;
At a glance it looks like this event only works if it is triggered from a bot's spawn brick.
The %bot from line 1 is overwritten on line 20, before it can be used to teleport anything.
So even if the %bot on line 1 is indeed a bot, the event ignores that and uses the bot associated with the triggering brick.