Hello Guys,
If I try to use the stairs when it has a body on it, returns false. Follow Screenshot:
Follow script:
I'm Using TFS 1.2
Sorry my bad english
Thank you in advance
If I try to use the stairs when it has a body on it, returns false. Follow Screenshot:
Follow script:
Code:
local upFloorIds = {1386, 3678, 5543}
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
if isInArray(upFloorIds, item.itemid) then
fromPosition:moveUpstairs()
else
fromPosition.z = fromPosition.z + 1
end
player:teleportTo(fromPosition, false)
return true
end
I'm Using TFS 1.2
Sorry my bad english
Thank you in advance