Making the door entity non-usable
#4
Use this:
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:


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)