VictorOtInfinit
Member
- Joined
- Mar 14, 2020
- Messages
- 139
- Solutions
- 3
- Reaction score
- 11
I'm trying to create a item that do not have this tag in XML:
Using:
But ins't working... Its possible make that item decay without the XML part? Using only lua?
XML:
<attribute key="decayTo" value="number" />
<attribute key="duration" value="number" />
Using:
Lua:
local seed = Game.createItem(6216, 1, toPosition)
seed:setAttribute(ITEM_ATTRIBUTE_DURATION,600)
seed:setAttribute(ITEM_ATTRIBUTE_DECAYSTATE, true)
seed:decay(40851)
But ins't working... Its possible make that item decay without the XML part? Using only lua?