• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Decay with setAttribute.

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:


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?
 
Back
Top