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

Item hlvr prop flashlight: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Page Creation)
 
m (→‎Inputs: Substituted IO templates)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{Source2 point multi|item_hlvr_prop_flashlight|game1 = Half-Life: Alyx}}
{{this is a|point entity|name=item_hlvr_prop_flashlight|game=Half-Life: Alyx|engine=Source 2}}


== Keyvalues ==
== Keyvalues ==
Line 13: Line 13:


== Inputs ==
== Inputs ==
{{IO|Enable|Enable the flashlight}}
{{I|Enable|Enable the flashlight}}
{{IO|Disable|Turn off the flashlight}}
{{I|Disable|Turn off the flashlight}}
{{I Parentname}}
{{I Parentname}}
{{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}}

Latest revision as of 11:03, 21 April 2025

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

Keyvalues

Model (model) ([todo internal name (i)]) <model path>


Start Disabled (StartDisabled) ([todo internal name (i)]) <boolean>


Enable fake bounce light on spawn (BounceLightEnabled) ([todo internal name (i)]) <boolean>
Bounce light will turn on when player picks up flashlight no matter what; this enables the bounce from spawn.
Parentname:
Parent (parentname) <targetname>
Specifies a movement parent. An entity will maintain its initial offset from its parent. An attachment point can be added to the end of the name, separated by a comma.

Flags

  • 1048576: Start Constrained

Inputs

Enable
Enable the flashlight
Disable
Turn off the flashlight
Parentname:
SetParent <stringRedirectInput/string>
Move with this entity. See Entity Hierarchy (parenting).
SetParentAttachment <stringRedirectInput/string>
Change this entity to attach to a specific attachment point on its parent. The entity will teleport so that the position of its root bone matches that of the attachment. Entities must be parented before being sent this input.
SetParentAttachmentMaintainOffset <stringRedirectInput/string>
As above, but without teleporting. The entity retains its position relative to the attachment at the time of the input being received.
ClearParent
Removes this entity from the the movement hierarchy, leaving it free to move independently.
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

VRHandAttachment:

OnAttachedToHand
Fired when the item is attached to the player's hand (i.e. pickup)
OnDetachedFromHand
Fired when the item is attached to the player's hand (i.e. drop)