Item hlvr prop flashlight

From Valve Developer Community
Revision as of 18:02, 19 July 2020 by FrozenH2O (talk | contribs) (Page Creation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template:Source2 point multi

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)