activator Last edited 10 months ago2024-01-19 01:04:24 UTC

You are viewing an older revision of this wiki page. The current revision may be more detailed and up-to-date. Click here to see the current revision of this page.
In GoldSrc entity system, the activator is the initiator of the entity events.

For example, when a player walks into a trigger, the player is the activator. In multiplayer, only the player who walks into a trigger is the activator. If a trigger has "Alow Monsters" flag on, then monsters that walk into them become activators.

Activators are use to preserve or keep track of the initiator of the entity events. For example, env_fade can be made to only apply to the activator with the "Activator Only" flag.

This allows a chaining of triggers e.g. a trigger targets a trigger_relay, which targets a game_text, which displays text to only the activator by default.

However, this activator chain can be broken when: Therefore, care should be taken to make sure entities that affect activators aren't targeted in the above ways. For example, a multi_manager targeting a game_text will crash the game unless "All clients" flag is checked.

1 Comment

Commented 7 months ago2024-03-26 01:06:50 UTC Comment #106087
In vanilla SDK, there is no way for any entity to specify the activator in the target field. However in Spirit of Half-Life, Sven Coop, and Featureful, you can use these special names:
  • !activator (SC, Featureful)
  • *locus (SoHL, Featureful)

You must log in to post a comment. You can login or register a new account.