Moar NPC Questions

Avatar
Katloverr
23 Posts
Posted Mar 29, 2014
I'm trying to make a battle of sorts with a personality core as part of a mod I'm developing; so far I have it moving, looking at the player, etc. I have yet to figure out how to make it AFFECTED by the bombs, though. The battle is designed to have three stages, but how would I make each stage engage and/or make the core fall off the rail/explode when 'defeated'?
Advertisement
Registered users don't see ads! Register now!
Avatar
CamBen
973 Posts
Posted Mar 29, 2014
Replied 2 hours later
add a trigger around its body/head/whatever with a filter as a filter_activator_class that only allows prop_exploding_futbols. Then, if you want to count how many are needed, use a math_counter and have the trigger add 1 each time it is tripped. then you can use onhitmax on the counter to fire an output.
Avatar
Katloverr
23 Posts
Posted Mar 29, 2014
Replied 1 hour later

CamBen wrote:
add a trigger around its body/head/whatever with a filter as a filter_activator_class that only allows prop_exploding_futbols. Then, if you want to count how many are needed, use a math_counter and have the trigger add 1 each time it is tripped. then you can use onhitmax on the counter to fire an output.

Thank you I'm going to try this right now

Advertisement
Registered users don't see ads! Register now!
Avatar
FelixGriffin
2,680 Posts
Posted Mar 30, 2014
Replied 21 hours later
An unkillable npc_bullseye can be used as a damage sensor, if you want to accept damage from other sources (such as turrets or rockets).