Filter Targetname Trigger



Sorry, we couldn't find any images attached to this page.

Filter Targetname Trigger




If you want to let specific named entities to be able to use trigger_multiple/func_button etc then you can use this prefab to filter for targetnames, so to prevent entities with different names from triggering it.

Here's a prefab for setting up targetname filtering for triggers- if you step in the targets it will trigger and explosion that will kill you but only if you have a targetname set (push the button to set one)
Briefly the setup is: trigger_multiple > trigger_condition checks !activator targetname -> match ? trigger explosion : do nothing
This will work for monsters as well.

Of course the trigger_condition is set up to check targetname- you could literally change this to any other key to check for if you like, for instance classname if you so desire.

Categories (tags)

entity-setup triggers

edit tags


Rate this prefab

5 / 5 (1 votes)

Comments & discussion

Add a New Comment
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License