player_hasinventory

A player_hasinventory checks whether the player who triggers it carries an inventory item, and fires Pass Target
if they have it and Fail Target if they don't. As the Master of a door, a button or a trigger, it makes that
entity work only for a player who carries the item. Items come from item_pickup and
player_inventory.

A door that opens only for the player who carries the red keycard
Attributes
The entity also has these common keys:
- Naming and triggering: Name
item_nameNames the item to check for, by its Item name.
pass_targetFires this target if the player has the item. With Shared, it fires this target if the team's shared items hold the item.
fail_targetFires this target if the player doesn't have the item, or with Shared, if the shared items don't hold it.
Flags
4SharedIt checks the team's shared items instead, and it answers any activator, the world too. Without this flag, it only answers an alive player
See also
item_pickup- an item that players pick up, with a keycard door exampleplayer_hasweapon- the same check for a weapon- Masters and states - entities that lock others
Changes since 1.38
player_hasinventoryis new in SBO 2.1.0
