Grenade Item Definition
Grenade item system for the Lilia framework.
Overview
Grenade items are weapons that can be equipped and used by players. They drop on death and prevent duplicate grenades.
PLACEMENT: - Place in: ModuleFolder/items/grenade/ItemHere.lua (for module-specific items) - Place in: SchemaFolder/items/grenade/ItemHere.lua (for schema-specific items)
USAGE: - Grenades are used by equipping them - They give the weapon specified in ITEM.class - Items are consumed when equipped - Weapons can be thrown and will explode - Grenades drop on death if ITEM.DropOnDeath is true
name
📋 Purpose
Sets the display name shown to players
💡 Example Usage
desc
📋 Purpose
Sets the description text shown to players
💡 Example Usage
category
📋 Purpose
Sets the category for inventory sorting
💡 Example Usage
model
📋 Purpose
Sets the 3D model used for the item
💡 Example Usage
class
📋 Purpose
Sets the weapon entity class that gets given to players
💡 Example Usage
width
📋 Purpose
Sets the inventory width in slots
💡 Example Usage
height
📋 Purpose
Sets the inventory height in slots
💡 Example Usage
DropOnDeath
📋 Purpose
Determines whether grenade drops on player death