• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

TFS 1.X+ onmoveitem topos got actionid?

Mjmackan

Mapper ~ Writer
Joined
Jul 18, 2009
Messages
1,477
Solutions
18
Reaction score
195
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