• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

TFS 1.X+ onmoveitem topos got actionid?

Mjmackan

Mapper ~ Writer
Premium User
Joined
Jul 18, 2009
Messages
1,424
Solutions
15
Reaction score
177
Location
Sweden
I want to return false if an item is trying to be thrown onto a table containing an item with actionid XXXX.

What i tried, in data/events/player @onMoveItem:
Lua:
local unplace = getThingfromPos({x=toPosition.x,y=toPosition.y,z=toPosition.z,stackpos=2})
if unplace:getActionId() == 9999 then
return false
end

But as expected getActionId will return nil.. I tried a couple other alternatives but nothing will succeed.
 
check
 
Solution
Back
Top