Hurting Payload

TheFluffycart

L3: Member
Jul 6, 2019
142
41
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?
 

Suna

What's a greybox?
aa
Nov 10, 2017
407
613
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)
 

TheFluffycart

L3: Member
Jul 6, 2019
142
41
Thanks! I was having trouble, and this really helped! Gonna implement it as soon as I can