ON/OFF Lever: Difference between revisions
Adrikikicp (talk | contribs) (Create a base tutorial, add some simple information) |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{DISPLAYTITLE: Black Mesa - On/Off Lever}} | |||
{{back | Black Mesa Level Creation}} | |||
Creating an On/Off lever in {{bms|4.1}} is simple. Some of the steps are similar to the [[Pipe Valve]] tutorial, with only some minor things to change. | |||
== Introduction == | == Introduction == | ||
First of all, we're going to create a | First of all, we're going to create a {{ent|func_door}} with the name door1 | ||
Later, we're gonna make the base. For that we create a | Later, we're gonna make the base. For that we create a {{ent|prop_static}} with the world model {{path|faf_lever_box|mdl}} | ||
[[File:Adrik1-FafLever.png]] | [[File:Adrik1-FafLever.png]] | ||
Line 25: | Line 27: | ||
In the lever/crank (prop_dynamic), we're gonna add as a parent the func_door_rotating with the name "button" | In the lever/crank (prop_dynamic), we're gonna add as a parent the func_door_rotating with the name "button" | ||
[[File:Adrik1-FafHandle-Parented.png | [[File:Adrik1-FafHandle-Parented.png|Parented lever]] | ||
{{todo|Create examples for another type of stuff (elevators, etc)}} | {{todo|Create examples for another type of stuff (elevators, etc)}} |
Latest revision as of 09:11, 22 November 2024
Creating an On/Off lever in Black Mesa is simple. Some of the steps are similar to the Pipe Valve tutorial, with only some minor things to change.
Introduction
First of all, we're going to create a func_door with the name door1
Later, we're gonna make the base. For that we create a prop_static with the world model faf_lever_box.mdl
Later, we create on a prop_dynamic with the world model faf_lever_handle.mdl, this will act as our lever/crank.
Until done, we add a func_door_rotating with the name "button" and the INVISIBLE texture, this will make the prop_dynamic move.

We create a new output, in this case, the OnOpen. Then add the name of the door (door1) and set as value Unlock

In the lever/crank (prop_dynamic), we're gonna add as a parent the func_door_rotating with the name "button"