trigger_impulse
This entity implements a feature that was sorely missed by many mappers: an out-of-the-box way to activate an object on a map when a key is pressed.
Options
targetname | Name of the object (used during activation and can be left empty by default). |
master | Name of the blocking entity. |
target | Target on the map. |
impulse | Filter for impulses. |
Usage Details
- The steps to set up activation are as follows. The user binds the desired key to generation of an impulse in the range from 1 to 50, for example:
bind b "impulse 1"
Subsequently, when the B key is pressed, this impulse is sent to the server from the player code and activates the universal target named game_firetarget. The activation contains a value that specifies the number of the impulse. The trigger_impulse entity takes over in this chain of operations and is set up in advance to use game_firetarget. - Specifying an impulse number lets you make sure that only this impulse is caught. Omitting the number makes the trigger react to any impulse it receives.
- The master option lets you explicitly block the effects of user keypresses.