Hurting Payload

Discussion in 'Mapping Questions & Discussion' started by TheFluffycart, Aug 17, 2019.

  1. TheFluffycart

    TheFluffycart L3: Member

    Messages:
    126
    Positive Ratings:
    35
    So I'm working on a gamemode where the payload can be killed by red team, but can't seem to figure out how to damage the payload. I tried setting the health of it, but the func_tracktrain is getting in the way of the payload hitbox. Is there any way to create a trigger around the cart that is the actual damage of the cart, and can kill the cart when it is killed itself?
     
  2. Sandwhip

    Server Staff Sandwhip

    Messages:
    247
    Positive Ratings:
    184
    The easiest way would be to use a func_breakable. Surround the payload in one and add an output to 'kill' the cart model, tracktrain, and all other cart entities when the func_breakable breaks. Make sure to set the render mode to "don't render". Make sure you take a close look at the VDC page of the entity so you fully understand it, and can tweak it to your liking.
    (Note that the func_breakable needs collisions enabled in order to work properly, so have it as small as possible)
     
    • Thanks Thanks x 1
  3. TheFluffycart

    TheFluffycart L3: Member

    Messages:
    126
    Positive Ratings:
    35
    Thanks! I was having trouble, and this really helped! Gonna implement it as soon as I can