Info
This entity allows you to create a custom item that is stored in the player's inventory and can be used as a key to unlock certain entities.
Those entities can be locked with an item_generic:
• func_button
• func_door
• func_door_rotating
• func_rot_button
• trigger_counter
• trigger_hurt
• trigger_multiple
• trigger_once
• trigger_push
• trigger_teleport
Flags
Ignore Gravity (1)
Makes the entity float in the air.
Do not store item (2)
Useful for making this entity function as a consumable.
Keyvalues
Name of the item to refer to (dataname)
This is not a tagetname. You can trigger this item by a targetname and you can refer to this item by its dataname.
The display name of the item (displayname)
This name show up at the inventory and when picking up the item.
Item icon inside the Sprites folder (iconname)
Name of the icon used for diplaying the item (.PNG).
Chance of appearing (chance)
From 1-100, this is the chance that this entity has to spawn on the level.
I/O Reaction
On Receive Inputs
On | Toggle -> Pick up.
Kill -> Destroy.
Sending Outputs
Target (Toggle) -> On pick up.
KillTarget (Kill) -> On pick up.