When I updated my sources to TFS 1.4 from 1.3 i lost a function to make object unmoveable through events.
This is the code im using:
It prints "yeloo" but the item is still getting moved even with my return false.
This is the code im using:
Lua:
function Player:onMoveItem(item, count, fromPosition, toPosition, fromCylinder, toCylinder)
if item:getActionId() == 9999 then
print("yeloo")
return false
end
if hasEventCallback(EVENT_CALLBACK_ONMOVEITEM) then
return EventCallback(EVENT_CALLBACK_ONMOVEITEM, self, item, count, fromPosition, toPosition, fromCylinder, toCylinder)
end
return RETURNVALUE_NOERROR
end
It prints "yeloo" but the item is still getting moved even with my return false.