I'm using vscript to activate a point_template that spawns a func_regenerate but it's only happening every other time and I'm not sure why. Any advice?
Code:
DoEntFire("regen_template", "ForceSpawn", "", 0, player, player)
local regen = Entities.FindByName(null, "template_regen_trigger")
if (!regen || !regen.IsValid()) return // failing this check half the time. `regen` is coming back null
// ... do stuff