targeting spawn points without giving thema unique name - mvm

Discussion in 'Mapping Questions & Discussion' started by Yabayabayaba, Jul 19, 2017.

  1. Yabayabayaba

    Yabayabayaba L5: Dapper Member

    Messages:
    247
    Positive Ratings:
    73
    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
     
  2. Freyja

    aa Freyja ¯\_(ツ)_/¯

    Messages:
    2,880
    Positive Ratings:
    4,972
    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.
     
    • Thanks Thanks x 1
  3. Dr. Orange

    Dr. Orange L6: Sharp Member

    Messages:
    369
    Positive Ratings:
    278
    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.
     
    • Thanks Thanks x 1
  4. Yabayabayaba

    Yabayabayaba L5: Dapper Member

    Messages:
    247
    Positive Ratings:
    73
    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
     
  5. henke37

    aa henke37

    Messages:
    1,932
    Positive Ratings:
    456
    You want to add the tag as a bot enters a trigger volume or when it spawns?
     
  6. Yabayabayaba

    Yabayabayaba L5: Dapper Member

    Messages:
    247
    Positive Ratings:
    73
    either, but without entering a tag within the popfile
     
  7. Yabayabayaba

    Yabayabayaba L5: Dapper Member

    Messages:
    247
    Positive Ratings:
    73
    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: Jul 21, 2017