filter_activator_name?

Avatar
Yekyaa
59 Posts
Posted Nov 12, 2007
quick question as I haven't attempted to do this myself, but would hope
someone has the answer before I spend 3 hrs making this only to find
out that it's made of fail.

if I set a filter_activator_name on a button to only allow for physics objects
of the name "box", will it set off for box_1, box_wsc, box_wcc, etc.
or do I have to name all boxes just "box".

My reasoning is b/c if I wanted a button to work for two separate types
of boxes that may be in the map (WCC and WSC for example) but not
the detachable cameras among other things, would it work for a simple
filter_activator with just the "common" portion of the entity name?

I'm hoping that question makes sense.
If it doesn't work for anything other than the EXACT name,
how would I setup a single filter_activator_name to work for just those
two and not ragdoll cameras that become physics objects?
or do I need two filter_activator_name's 1 for each and would that work
(ie can both be active without interrupting the other?)

I've browsed HL mapping forums as much as possible but not much info
on the filter portion.

Advertisement
Registered users don't see ads! Register now!
Avatar
msleeper
4,095 Posts
Member
Posted Nov 12, 2007
Replied 40 minutes later
You need to use a wildcard, so "box_*" will get anything that begins with box_.
Avatar
Yekyaa
59 Posts
Posted Nov 12, 2007
Replied 44 minutes later
Awesome, thank you, now to do prefabs for the buttons