targeting spawn points without giving thema unique name - mvm

  • Site Migration: See bugs? Report them here. Want something changed or have an idea? Suggest it here.

Yabayabayaba

L5: Dapper Member
Jun 2, 2016
247
Strange request, but I have 2 sets of spawnpoints, and I don't want to rename either, yet i want to control them using map logic. The popfiles are looking for spawnbot, but could I use a prefix or suffix to target the spawns individually without confusing the popfile? Or would it just be better to differentiate in the popfile?

thanks!
Yaba
 

Freyja

aa
Jul 31, 2009
2,941
I'm not sure about the exact situation but you can specify multiple Where's in the popfile under a wavespawn, like

WaveSpawn
{
Name "scouts"
Where spawnbot_set1
Where spawnbot_set2
Where spawnbot_set3
}

They will spawn at the first valid one (ie. not disabled) that they find. You can use this to turn on/off spawn points depending on where you want them to spawn.
 

Dr. Orange

L6: Sharp Member
May 25, 2015
391
You can use the user inputs and outputs for this. Simply add an "OnUser1" output on the spawnpoint you want to disable, with the targeted entity set to the special targetname "!self" and the input being "Disable". Then, when you want to disable that particular spawnpoint, simply send the "FireUser1" input to the spawnpoints and only the ones with the custom OnUser output will be disabled.
 

Yabayabayaba

L5: Dapper Member
Jun 2, 2016
247
Thank you for your great input! On a similar note what command would a trigger use to add a tag to a bot (so instead of enabling/disabling avoids and prefers I can just use different tags for each path)

Thank so much!

Yaba
 

henke37

aa
Sep 23, 2011
2,075
You want to add the tag as a bot enters a trigger volume or when it spawns?
 

Yabayabayaba

L5: Dapper Member
Jun 2, 2016
247
either, but without entering a tag within the popfile
 

Yabayabayaba

L5: Dapper Member
Jun 2, 2016
247
so i found the entity trigger_bot_tag , which lets you add/ remove tags, but it dosn't seem to work in mvm, any other solutions?


I have found a different method, enabling/disabling the avoids instead of using tags to navigate the different paths
 
Last edited: