Need help with triggers and ent_create.

Amicdict

L1: Registered
Jan 21, 2021
17
3
I'm working on a config to allow players to play MvM with bot allies on listen servers. (NOTE: This is different from setting up a dedicated server to play MvM on. Not all players can just setup a dedicated server at will!) I got the bots working (long story short they need a RED item_teamflag in order to play properly), but one problem I've been having is that they have no good gamesense. For instance the RED bots would always stay at the frontlines despite the bomb being near the bomb pit or being unable to use dispensers. Naturally of course I thought of map triggers because I can use filters to force RED bots to do certain things (like tell the sniper to get into position or move the engineer to the bomb pit or the frontlines). (This context information is important in order to prevent the XY problem from happening.)

Only problem is that I can't figure out how to get the triggers working with ent_create and ent_fire. I looked at the Wiki for answers, but I still haven't fixed the issue. I'm thinking of the issues that might be causing me problems:
  • Incorrectly using the "mins" and "maxs" KVs.
  • Incorrectly setting the filter entities.
  • Trigger entities just fundamentally do not work with ent_create and ent_fire commands.
  • Not setting/Incorrectly setting the trigger entity's origin.
This is not a definite list of course as there might be other problems that I haven't found out yet.