Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
function droppable takes nothing returns nothing
local timer t = GetExpiredTimer()
local item used = GetHandleItem(t,"Item")
call SetItemDroppable(used,true)
call FlushHandleLocals(t)
call DestroyTimer(t)
set = null
set used = null
endfunction
function ACTIONS takes nothing returns nothing
...
local timer t = CreateTimer()
call SetItemDroppable(GetManipulatedItem(),false)
call TimerStart(t,10.00,false, function droppable) //10.00 would be a cooldown of 10 seconds
call SetHandleHandle(t,"Item",GetManipulatedItem())
...
...PurplePoot said:UnMi - umm... if you like if/thens
(kinda like this)
if A then
A
elseif B then
B
and soooo on............
local real duration
...
if A then
set duration = 5
elseif B then
set duration = 3
...
endif
call TimerStart(t,duration,false,function OK)
...
