Moderator elections are being held. See Valve Developer Community:Moderator elections for more details.
Users who would like to run for moderator must be autoconfirmed and have at least 100 edits. Users can check their own edit count at Special:Preferences.

trigger_inventory_check

From Valve Developer Community
Jump to: navigation, search

trigger_inventory_check is a brush entity available in Vampire The Masquerade - Bloodlines Vampire The Masquerade - Bloodlines. A trigger that checks specified inventory item availability and generate the dependent output.

Key Values


Targetname:
Name (???) <target_source>
The targetname that other entities refer to this entity by.
Start Hidden (targetname) <choices>
Don't spawn the entity while the script command didn't sent.
Value Description
0 Yes
1 No
Start Disabled (StartDisabled) <choices>
If "Yes" the entity starts disabled.
Value Description
0 No
1 Yes

Origin:

Origin (X Y Z) (origin) <origin>
The position of this entity's center in the world. Rotating entities typically rotate around their origin.
Item to Check (itemname) <itemclass>
The name of player's inventory item that will be checked by trigger.

Inputs


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.

EnableDisable:

Enable
Disable
Enable/disable this entity from performing its task. It might also disappear from view.

Toggle:
Toggle
Toggle the enabled/disabled status of this entity.
ToggleFlagClient
Toggle client's ability to use this trigger.
ToggleFlagNPC
Toggle NPC's ability to use this trigger.
EnableFlagClient
EnableFlagClient.
EnableFlagNPC
Enable NPC's ability to use this trigger.
DisableFlagClient
Disable client's ability to use this trigger.
DisableFlagNPC
Disable NPC's ability to use this trigger.


ScriptHide
Hide entity by specific python script.
ScriptUnhide
Spawn entity by specific python script if it was hided.

Outputs

OnPlayerHasItem
Fired whether a player has selected item.
OnStartTouch
Fired when a valid entity starts touching this trigger. !activator is whatever touches the trigger.
OnEndTouch
Fired when a valid entity stops touching this trigger.
Warning.pngWarning:This includes entities which are deleted while inside the trigger. In this case !activator will be invalid.