![]() |
|
Adding firework rockets to inventory - Printable Version +- Cuberite Forum (https://forum.cuberite.org) +-- Forum: Plugins (https://forum.cuberite.org/forum-1.html) +--- Forum: Plugin Discussion (https://forum.cuberite.org/forum-8.html) +--- Thread: Adding firework rockets to inventory (/thread-2905.html) |
Adding firework rockets to inventory - Mathias - 02-23-2017 How would I add a firework rocket with custom values for flight, type, trail, flicker and colors to an inventory, using AddItem? I've tried different methods, but nothing has worked so far. Code: Item = cItem()
Item.m_ItemType = E_ITEM_FIREWORK_ROCKET
Item.m_ItemCount = 1
Item.m_FireworkItem.m_Type = 1
Item.m_FireworkItem.m_HasFlicker = true
Item.m_FireworkItem.m_HasTrail = true
Player:GetInventory():AddItem(Item) |