class specific triggers

Discussion in 'Mapping Questions & Discussion' started by Gamer_X, Jun 28, 2016.

  1. Gamer_X

    Gamer_X L1: Registered

    Messages:
    3
    Positive Ratings:
    0
    Im experementing in my map and i wanted to try doing trigger than one class (spy for example) can activate, while other classes cant. Any ideas on how to do it?
     
  2. henke37

    aa henke37

    Messages:
    1,876
    Positive Ratings:
    440
    There is a filter entity class that you can use. I forgot the exact name and the VDC is missing it.
     
  3. Dr. Orange

    Dr. Orange L6: Sharp Member

    Messages:
    362
    Positive Ratings:
    271
    There's filter_activator_tf_class, but I don't think it's in the official fgd. It still works in game, thoigh.
     
  4. killohurtz

    aa killohurtz Distinction in Applied Carving

    Messages:
    1,003
    Positive Ratings:
    1,155
    • Useful Useful x 1
  5. Gamer_X

    Gamer_X L1: Registered

    Messages:
    3
    Positive Ratings:
    0
    how do i create it exactly? there is no entity named filter_tf_class in my hammer.
     
  6. Tumbolisu

    aa Tumbolisu  I ⌄ I 

    Messages:
    937
    Positive Ratings:
    905
    "not in the fgd" means that it's not accessible from hammer by default. You have to add a custom .fgd. The code is on the bottom of the VDC page that killo linked.
     
  7. Gamer_X

    Gamer_X L1: Registered

    Messages:
    3
    Positive Ratings:
    0
    Thanks for explaining.