Magictibiaman
New Member
- Joined
- May 25, 2009
- Messages
- 371
- Reaction score
- 0
my goal is to open the door for 5 secs, then close the door
and make it that you can't try to open the door with the lever until the door is closed.
my problem is that is can't find the door when it is open
it keeps saying "luaDoTransformItem(). item not found"
it has no problem opening the door it just can't close it
help please
and make it that you can't try to open the door with the lever until the door is closed.
my problem is that is can't find the door when it is open
it keeps saying "luaDoTransformItem(). item not found"
it has no problem opening the door it just can't close it
help please
Code:
if ((item.uid == 7031) and (doorwait == 1)) then
door1 = getThingfromPos(doorpos1)
doTransformItem(door1.uid,door1.itemid+1)
doorwait = 0
door1 = getThingfromPos(doorpos1)
addEvent(doTransformItem(5 * 1000,door1.uid,door1.itemid-1))
end