Help needed: spawning dummy bot a fixed distance in front of player

I need this to help with a little OW research I’m doing. I have tinkered with various functions in the Workshop but not found a solution so far.

Basically what I need is the ability to press a button to spawn a dummy bot that is say, 10 meters, away in the direction the player is current facing and this bot should face the player directly as well.

I’d greatly appreciate it if someone could point me in the right directions.

Thanks.

create dummy bot(*hero*, *team*, *slot*, world vector of(multiply(forward, 10), event player, rotation and translation), direction towards(world vector of(multiply(forward, 10), event player, rotation and translation), event player))

2 Likes

Thank you! I’ll try it out tonight.

Update: it worked! Just one minor thing: I had to change the second multiplier to -1 to have the bot face the player when spawned.

1 Like