Prop hlvr crafting station: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "{{Source2 point multi|prop_hlvr_crafting_station|game1 = Half-Life: Alyx}} ==Entity description== It is a station that can be used to spend resin in return for weapon upgrade...")
 
m (Remove duplicate inputs)
Line 26: Line 26:
{{IO|OnPlayerNear|Fired when the player is near the station before it has been hacked and opened.}}
{{IO|OnPlayerNear|Fired when the player is near the station before it has been hacked and opened.}}
{{ScrollBox|title=VScript|
{{ScrollBox|title=VScript|
{{IO|RunScriptFile|param=string|Load and execute a script file.}}
{{IO|RunScriptCode|param=string|Execute a fragment of script code.}}
{{IO|CallScriptFunction|param=string|Call a script function.}}
{{IO|CallPrivateScriptFunction|param=string|Calls a script function from this entity's private script scope.}}
{{IO|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.}}
{{IO|CallGlobalScriptFunction|param=string|Calls a script function in the global script scope.}}

Revision as of 09:21, 15 July 2020

Template:Source2 point multi

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) ([todo internal name (i)]) <targetname>
Specifies an info_hlvr_holo_hacking_plug to be used to activate the crafting station.
Starts Powered (is_powered) ([todo internal name (i)]) <boolean>
Sets whether the crafting station and the associated hacking plug start powered.
Lightmap Static (lightmapstatic) ([todo internal name (i)]) <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