How do I disable/enable spawn points through triggers?

Discussion in 'Mapping Questions & Discussion' started by That's the plan, Sep 23, 2018.

  1. That's the plan

    That's the plan L4: Comfortable Member

    Messages:
    183
    Positive Ratings:
    37
    So I want to create a obstacle course with checkpoints. Whenever a player passes through a trigger, the previous spawn point should disable, and the next spawn point should enable. The only problem is I can't figure out how to get it to work properly. Any help would be greatly appreciated.
     
  2. Da Spud Lord

    aa Da Spud Lord Occasionally I make maps

    Messages:
    1,334
    Positive Ratings:
    896
    Name each spawnpoint/group of spawnpoints something unique. For each trigger, add the outputs OnStartTouch > (name of the spawnpoints you want active) > Enable, and OnStartTouch > (name of the spawnpoints you want to deactivate) > Disable.
     
  3. That's the plan

    That's the plan L4: Comfortable Member

    Messages:
    183
    Positive Ratings:
    37
    Can a trigger_once work? Its also worth mentioning that the checkpoints besides the spawn at the beginning are disabled until enabled by the trigger.
     
  4. DrSquishy

    aa DrSquishy ???

    Messages:
    1,227
    Positive Ratings:
    802
    A trigger_once would work but using a trigger_multiple might be preferred
     
  5. Da Spud Lord

    aa Da Spud Lord Occasionally I make maps

    Messages:
    1,334
    Positive Ratings:
    896
    Unless you need the trigger entity to continue to exist for some reason, trigger_once would probably be better than trigger_multiple, as (according to the vdc) trigger_once will kill itself once triggered, thus reducing the entity count. Unless your map is pushing engine limits, the effects of this will be extremely small and likely unnoticeable even on a toaster, but it's still better than keeping a pointless entity around.