callback DoWithBlockEntityAt why not work
#1
function OnPlayerRightClick(Player, BlockX, BlockY, BlockZ, BlockFace, CursorX, CursorY, CursorZ)
  local world=Player:GetWorld()
  world:DoWithBlockEntityAt(BlockX, BlockY, BlockZ,
    function  (a_BlockEntity)
      LOG(a_BlockEntity:GetBlockType())
    end
  )
  LOG("End")
  return false
end

(Edited by xoft to add formatting)
Reply
Thanks given by:


Messages In This Thread
callback DoWithBlockEntityAt why not work - by as123456 - 08-29-2016, 10:25 PM



Users browsing this thread: 5 Guest(s)