Leo32
Getting back into it...
- Joined
- Sep 21, 2007
- Messages
- 990
- Solutions
- 14
- Reaction score
- 551
I'm using a movement script to point stairs to an alternative position.
This is working as intended at the moment:
What I am having trouble with, is replicating teleporting ITEMS when you move them on-to the stairs as-well.
Anyone got any ideas on the cleanest way to do this?
Not looking for a hand-hold, just a pointer in the right direction.
This is working as intended at the moment:
Code:
local pos = {x = 1191, y = 736, z = 8}
function onStepIn(creature, item, position, fromPosition)
local player = creature:getPlayer()
if player == nil then
return false
end
player:teleportTo(pos)
player:setDirection(SOUTH)
return true
end
What I am having trouble with, is replicating teleporting ITEMS when you move them on-to the stairs as-well.
Anyone got any ideas on the cleanest way to do this?
Not looking for a hand-hold, just a pointer in the right direction.