filter_activator_class or _name not working
Quote from Shadow-Link on May 30, 2011, 11:57 amHello guys,
I'm trying to do something what appears to be a very simple thing, but for some reason refuses to work. And I'm starting to get very frustrated with it, so hopefully you guys can help me out.
The idea:
I have a prop_floor_button which will open a door when you stand on it, or place a prop_weighted_cube on it. Now the idea is that when you stand on the button it will just open the door, but when the cube is placed on the button it will have to open the door and trigger a second event.So I started out with a trigger_once which uses a filter_activator_class so it can only be triggered by a prop_weighted_cube, but for some reason it just won't trigger.
Here is what I did exactly:
trigger_once
- Name: cube_trigger
- Filter Name: cube_filter
Output:
- OnTrigger, panel, instance:panels_up;Trigger
Input:
-filter_activator_class
- Name: cube_filter
- Filter Mode: Allow entities that match criteria
- Filter Classname: prop_weighted_cube
Output:
-
Input:
-prop_weighted_cube
- Name: cube
Output:
-
Input:
-I have looked at examples like the combine soldier who asks you to put a can in the trash in HL2, and I tried to do the same thing but it just won't work. I also tried the filter_activator_name, and I tried using other props/brushes to trigger with. None worked so far. Can anyone please tell me if I'm forgetting something or doing something wrong?
Thanks for the help.
Hello guys,
I'm trying to do something what appears to be a very simple thing, but for some reason refuses to work. And I'm starting to get very frustrated with it, so hopefully you guys can help me out.
The idea:
I have a prop_floor_button which will open a door when you stand on it, or place a prop_weighted_cube on it. Now the idea is that when you stand on the button it will just open the door, but when the cube is placed on the button it will have to open the door and trigger a second event.
So I started out with a trigger_once which uses a filter_activator_class so it can only be triggered by a prop_weighted_cube, but for some reason it just won't trigger.
Here is what I did exactly:
trigger_once
- Name: cube_trigger
- Filter Name: cube_filter
Output:
- OnTrigger, panel, instance:panels_up;Trigger
Input:
-
filter_activator_class
- Name: cube_filter
- Filter Mode: Allow entities that match criteria
- Filter Classname: prop_weighted_cube
Output:
-
Input:
-
prop_weighted_cube
- Name: cube
Output:
-
Input:
-
I have looked at examples like the combine soldier who asks you to put a can in the trash in HL2, and I tried to do the same thing but it just won't work. I also tried the filter_activator_name, and I tried using other props/brushes to trigger with. None worked so far. Can anyone please tell me if I'm forgetting something or doing something wrong?
Thanks for the help.
Quote from p0rtalplayer on May 30, 2011, 5:34 pmThe trigger on the button you're using is a trigger_once, so it's only triggering once. You should fix that.
But besides that I see nothing wrong with the setup, so I don't know why it wouldn't be triggering at all.
The trigger on the button you're using is a trigger_once, so it's only triggering once. You should fix that.
But besides that I see nothing wrong with the setup, so I don't know why it wouldn't be triggering at all.
Quote from Shadow-Link on May 30, 2011, 9:05 pmThe button itself will trigger the door, but the trigger will activate some panels which only need to be triggered once. Thats why i chose the trigger_once, but the trigger_multiple doesn't work either.
The button itself will trigger the door, but the trigger will activate some panels which only need to be triggered once. Thats why i chose the trigger_once, but the trigger_multiple doesn't work either.
Quote from NocturnalGhost on May 30, 2011, 9:33 pmDo you have the "physics objects" flag checked in the trigger?
Do you have the "physics objects" flag checked in the trigger?
Quote from Shadow-Link on May 31, 2011, 7:48 amI can't believe I forgot the check the flags tab
, but that did the trick!
Thanks a lot!
I can't believe I forgot the check the flags tab
, but that did the trick!
Thanks a lot! ![]()
