Item hlvr prop flashlight: Difference between revisions
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: | ||
{{ | {{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 == | ||
{{ | {{I|Enable|Enable the flashlight}} | ||
{{ | {{I|Disable|Turn off the flashlight}} | ||
{{I Parentname}} | {{I Parentname}} | ||
{{ScrollBox|title=VScript| | {{ScrollBox|title=VScript| | ||
{{ | {{I|CallPrivateScriptFunction|param=string|Calls a script function from this entity's private 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.
Keyvalues
- Model (model) ([todo internal name (i)]) <model path>
- 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 <string >
- Move with this entity. See Entity Hierarchy (parenting).
- SetParentAttachment <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 <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 <string >
- Calls a script function from this entity's private script scope.
- CallGlobalScriptFunction <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)