VERC: Invisible Usable Trigger Last edited 4 years ago2019-04-21 12:23:42 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.

Introduction

It it occasionally handy to have an invisible non-tangible area that can be "used" to trigger an event. The easiest example to come up with is a set of double doors that must be triggered at the same time. Normally, if you wanted them to open at the approach of a player, you'd just use a trigger_multiple. But say you wanted the player to have to "use" the doors to open them. It's easy to set it up.

Setup

The Event

The event can be anything that needs to be triggered. For simplicity's sake, we'll stick with the double doors mentioned above. Using func_door_rotating entites, create the doors as you want them, and give them both the same name.
User posted image

The Trigger

As stated above, rather than using a trigger_multiple to open the doors, we're going to use a func_rot_button. This won't exactly be a standard func_rot_button though. The most non-standard thing about it is it doesn't need an origin brush. Since its also going to be invisible, you can use the AAATRIGGER texture on it so it stands out as a trigger.
User posted image
Below are the relevant entity properties you'll want to set. You'll also need to set the "Not Solid" flag in the func_rot_button Flag properties section.

That's that. As you can see, it's really not that complicated, but its not something that would immediately come to mind, but more of an alternate use. If you want a premade example map, refer to the file below.

Example

For a more concrete illustration, check out the example map linked below.
This article was originally published on the Valve Editing Resource Collective (VERC).
TWHL only archives articles from defunct websites. For more information on TWHL's archiving efforts, please visit the TWHL Archiving Project page.

Comments

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