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

filter_vr_grenade

From Valve Developer Community
Jump to navigation Jump to search

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

Entity description

A filter that filters for VR Grenades

Keyvalues

Is Not Armed (IsNotArmed) ([todo internal name (i)]) <boolean>
Filter for unarmed Grenades. If you don't care about grenade state select Armed and Not armed
Is Armed (IsArmed) ([todo internal name (i)]) <boolean>
Filter for Armed Grenades

BaseFilter:

Filter mode (Negated) <boolean>
Inverts the filter, making the specified criteria fail and all others pass.

Inputs

BaseFilter:

TestActivator
Tests the entity that called the input (the !activator) against the filter, and fires either the OnPass or OnFail output.
Icon-Bug.pngBug:Calling this input will cause the server to crash if the !activator entity no longer exists. Do not use this input to test any entities which may be asynchronously deleted, such as players or projectiles, or in an i/o chain which might be initiated by entity deletion, such as the OnEndTouch output of a trigger.
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

BaseFilter:

OnPass
OnFail
One of these will fire when TestActivator input is sent, depending on if the activator is allowed by the filter or not.