How can I spawn a bot per button press?

Im currently working on a sort of boss fight mode and I already made a custom ability with cooldown so thats not an issue however Id like to make the second custom ability spawn in a lucio bot either on me or where Im aiming (doesnt matter which one), does anyone know which conditions and rules i have to use for this? thanks in advance, also Id appreciate it a lot (altho not necessary) if you attached a screenshot/multiple screenshot of the rules instead of typing them out depending on how complicated it is, Thanks a lot!

You need to insert a bot in the lobby manually, cause you cant spawn one through script. And it has to be Lucio, cause START FORCING PLAYER TO BE HERO doesnt work on bots right now. But you can give him the status rooted (set staus(rooted,9999)) and place him (teleport()) where he cant be seen and is out of combat. When you want to spawn him with a buttonpress, you just teleport him to the location you want and clear his rooted status.

Sry I dont have the workshop open right now, so i cant provide you with code. But you might find my explanation helpful and do it yourself :slight_smile:

Thanksa lot! thats exactly what I needed, Im guessing I add the lucio bot in the lobby and then add a condition that says something like “if player is on hero lucio teleport event player to X, rooted” and a seperate condition to tp and unroot him on button press and then another one for after he dies “if hero lucio respawns tp to X, rooted” right?

Yes thats how I would do it :slight_smile: