This article's documentation is for Source 2. Click here for more information.

Prop hlvr crafting station: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Remove duplicate inputs)
m (→‎Inputs: Substituted IO templates)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Source2 point multi|prop_hlvr_crafting_station|game1 = Half-Life: Alyx}}
{{this is a|point entity|name=prop_hlvr_crafting_station|game=Half-Life: Alyx|engine=Source 2}}


==Entity description==
==Entity description==
Line 5: Line 5:


== Keyvalues ==
== Keyvalues ==
{{KV|Hacking Plug (hacking_plug)|targetname|Specifies an [[info_hlvr_holo_hacking_plug]] to be used to activate the crafting station.}}
{{KV|Hacking Plug|intn=hacking_plug|targetname|Specifies an [[info_hlvr_holo_hacking_plug]] to be used to activate the crafting station.}}
{{KV|Starts Powered (is_powered)|boolean|Sets whether the crafting station and the associated hacking plug start powered.}}
{{KV|Starts Powered|intn=is_powered|boolean|Sets whether the crafting station and the associated hacking plug start powered.}}
{{KV|Lightmap Static (lightmapstatic)|choices|How this geometry influences baked lighting.}}
{{KV|Lightmap Static|intn=lightmapstatic|choices|How this geometry influences baked lighting.}}
:{| class=standard-table
:{| class=standard-table
! Value || Description
! Value || Description
Line 21: Line 21:


== Inputs ==
== Inputs ==
{{IO|Enable|Enable the crafting station and the associated hacking plug if they did not start powered.}}
{{I|Enable|Enable the crafting station and the associated hacking plug if they did not start powered.}}
{{IO|OpenStation|Open the station. Skips the hacking plug puzzle and opens the station immediately.}}
{{I|OpenStation|Open the station. Skips the hacking plug puzzle and opens the station immediately.}}
{{IO|ReturnWeapon|Return the weapon to the player immediately.}}
{{I|ReturnWeapon|Return the weapon to the player immediately.}}
{{IO|OnPlayerNear|Fired when the player is near the station before it has been hacked and opened.}}
{{I|OnPlayerNear|Fired when the player is near the station before it has been hacked and opened.}}
{{ScrollBox|title=VScript|
{{ScrollBox|title=VScript|
{{IO|CallPrivateScriptFunction|param=string|Calls a script function from this entity's private script scope.}}
{{I|CallPrivateScriptFunction|param=string|Calls a script function from this entity's private script scope.}}
{{IO|CallGlobalScriptFunction|param=string|Calls a script function in the global script scope.}}
{{I|CallGlobalScriptFunction|param=string|Calls a script function in the global script scope.}}
}}
}}
{{I Targetname}}
{{I Targetname}}
Line 33: Line 33:
== Outputs ==
== Outputs ==
{{O Targetname}}
{{O Targetname}}
[[Category:Prop entities|hlvr crafting station]]

Latest revision as of 11:15, 21 April 2025

prop_hlvr_crafting_station is a point entity available in Half-Life: Alyx Half-Life: Alyx.

Entity description

It is a station that can be used to spend resin in return for weapon upgrades. Upgrades may only be bought for weapons that the player currently has.

Keyvalues

Hacking Plug (hacking_plug) <targetname>
Specifies an info_hlvr_holo_hacking_plug to be used to activate the crafting station.
Starts Powered (is_powered) <boolean>
Sets whether the crafting station and the associated hacking plug start powered.
Lightmap Static (lightmapstatic) <choices>
How this geometry influences baked lighting.
Value Description
0 No
1 Yes
2 Bounce Only
Targetname:
Name (targetname) <string>
The targetname that other entities refer to this entity by.
Entity Scripts (vscripts) <scriptlist> (in all games since Left 4 Dead 2)
Space delimited list of VScript files (without file extension) that are executed after all entities have spawned. The scripts are all executed in the same script scope, later ones overwriting any identical variables and functions.

Inputs

Enable
Enable the crafting station and the associated hacking plug if they did not start powered.
OpenStation
Open the station. Skips the hacking plug puzzle and opens the station immediately.
ReturnWeapon
Return the weapon to the player immediately.
OnPlayerNear
Fired when the player is near the station before it has been hacked and opened.
VScript:
CallPrivateScriptFunction <stringRedirectInput/string>
Calls a script function from this entity's private script scope.
CallGlobalScriptFunction <stringRedirectInput/string>
Calls a script function in the global script scope.


Outputs