Talk:Filter activator name

From Valve Developer Community
Revision as of 23:43, 24 April 2019 by Ninjaofsauce (talk | contribs) (added quick tutorial by Helix to explain a useful use.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Helix > Jan 21, 2010 at 9:17am <ref>[1], http://ubermicro.proboards.com/thread/1988/tutorial-personal-triggers-activator-self</ref>

Individual triggering: "targetname"

This is what I personally LOVE. It is so extremely powerfull and useful. But hang on, please do not try to understand this if you are not an advanced mapper.

What can it do? Let one individual player get affected by all kinds of stuff, as long as that stuff has a filter. I am going to give one raw example;

Goal: When a player hits a trigger_multiple, a trigger_push somewhere else in the map will only affect this player. (same thing as with the "!" trigger. Anyone who ALSO hits this trigger will be affected ALSO, but this time the "!" is required, you will see.)


Recipe: 1 trigger_multiple 1 filter_activator_name 1 trigger_push

Preparation: filter_activator_name settings: targetname: <your choice>, will be filter_activator_name in this tut. filtermode: Allow entities that match criteria (depending on the situation, you might want to allow or disallow, in this case we will allow because we want the player to ALLOW something when it hits the trigger_multiple). filtername: <your choice>, will be X in this tut.

trigger_push settings: filtername: filter_activator_name All the other settings can be adjusted to your own needs.

trigger_multiple outputs: -!activator -AddOutput -targetname X [[/li][li]][/b][/u]

And there you go. You've just set a player's entity targetname to X. As long as any entity that can have a filter has the filter_activator_name added, this entity will only affect players with entity targetname X. Simple, huh?