Difference between revisions of "Half-Life: Alyx Workshop Tools/Level Design/Flashlight"
m (Added the page to the categories 'Half-Life: Alyx Workshop Tools/Level Design' and 'Half-Life: Alyx Workshop Tools', Removed the shortpage title for now) |
Deprecated (talk | contribs) (Added HLATools page template) |
||
Line 3: | Line 3: | ||
|ru=Инструменты_мастерской_Half-Life:_Alyx/Дизайн_уровней/Фонарик | |ru=Инструменты_мастерской_Half-Life:_Alyx/Дизайн_уровней/Фонарик | ||
}} | }} | ||
+ | {{HLATools page|leveldesign=1}} | ||
== Introduction == | == Introduction == | ||
This tutorial will teach you how to use the flashlight in your map. | This tutorial will teach you how to use the flashlight in your map. | ||
Line 80: | Line 81: | ||
[[Image:HLA_flashlight_example_ingame.png|thumb|left|500px|The flashlight working in game!]] | [[Image:HLA_flashlight_example_ingame.png|thumb|left|500px|The flashlight working in game!]] | ||
− | |||
− | |||
− |
Revision as of 20:41, 27 May 2020
Introduction
This tutorial will teach you how to use the flashlight in your map.
You will need:
- A logic_playerproxy
- An info_hlvr_equip_player
- An input method (Triggers, buttons, etc...)
Setup
Create a room with an info_hlvr_equip_player. Set the properties:
Key | Value |
---|---|
Equip on Map Start | ✓ |
Flashlight | ✓ |
Grabbity Gloves | ✓ |
Place a logic_playerproxy and name it playerproxy for this tutorial.
Place a trigger_multiple where you would like your flashlight to be turned on or off.
Turning the Flashlight On/Off
To turn on the flashlight, send the input SetFlashlightEnable to the playerproxy.
My Output | Target Entity | Target Input | Parameter | Delay |
---|---|---|---|---|
OnTrigger | playerproxy | SetFlashlightEnable | 0.00 |
To turn off the flashlight, send the input SetFlashlightDisable to the playerproxy.
My Output | Target Entity | Target Input | Parameter | Delay |
---|---|---|---|---|
OnTrigger | playerproxy | SetFlashlightDisable | 0.00 |

Finishing Up
Compile and run your map. When you walk through the triggers, your flashlight will turn on and off.
You can download the example map here. [[1]]