Half-Life: Alyx

Half-Life: Alyx

Expand the world of Half-Life: Alyx
Browse the Half-Life: Alyx Workshop to find the best new addons created by the community, or install the free tools yourself and start making your own Half-Life: Alyx content.
Learn More
Help: "Unrelyable trigger problem" (trigger dont work 100%)
Hello, I recently published my mod RPD First Floor in the Workshop, and of course, players are encountering various issues and bugs. My problem is that I don't know how to fix certain bugs that sometimes appear and sometimes don't.

Here are a few examples:

a. Sound is not playing: The player is teleported via a "trigger_teleport" into a distant room, landing in a "trigger_multiple". This "trigger_multiple" triggers various entities such as "env_fade", "func_move", "point_servercommand", and "point_soundevent" with different delays. Most of the time, the "point_soundevent" does not work, and the music doesn't play in that case.

b. Keycards: I often use a mix of "trigger_multiple", "point_template", "prop_physics", and "filter_name" to create interactive objects like a keycard, key, valve, etc. The "trigger_multiple" checks a "prop_physics" (a keycard) and tests if it matches the filter. If it passes the "filter_name", it opens a door, for example.

In both cases, the mechanics may work in one playthrough but fail in another. Often, reloading a save resolves the issue.

My question is: how can I design such triggers to work reliably?

I have no experience with scripting or programming that I could apply here. I wonder if these errors are caused by my incompetence or if they are due to the Source engine.

I would really appreciate any help, as I have no idea how to fix bugs that occur so inconsistently.