Making the door entity non-usable
#4
Use this:
1
2
3
4
5
6
7
8
function OnPlayerRightClick(Player, BlockX, BlockY, BlockZ, BlockFace, CursorX, CursorY, CursorZ)
    if (BlockFace == BLOCK_FACE_NONE) then
        return false
    end
    local BlockType = Player:GetWorld():GetBlock(BlockX, BlockY, BlockZ)
    local BlockMeta = Player:GetWorld():GetBlockMeta(BlockX, BlockY, BlockZ)
    -- Your code
end
Reply
Thanks given by: JonnyBoy0719


Messages In This Thread
RE: Making the door entity non-usable - by NiLSPACE - 06-04-2016, 11:39 PM



Users browsing this thread: 1 Guest(s)