lazarus321
Member
- Joined
- May 8, 2017
- Messages
- 222
- Reaction score
- 23
If i have this action for machete,
How could I put a time to use again? if it is action, I have no idea how I would do it.
C++:
<action itemid="2420" script="tools/machete.lua" />
C++:
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
if target.itemid == 2782 then
target:transform(2781)
target:decay()
return true
end
return destroyItem(player, target, toPosition)
end
How could I put a time to use again? if it is action, I have no idea how I would do it.