OSRS Plugin API
    Preparing search index...

    Function getBitFlags

    • Gets the bitflags for the specified point.

      Parameters

      Returns number

      testFlag = function(x,z)
      local playerCoord = osrs.ClientOp.coord()
      coord = playerCoord:move(0,x,z)
      local flags = osrs.Collision.getBitFlags(coord)
      osrs.ClientOp.highlightTileOn(coord:toBitPacked(), 6, true)
      if(osrs.Math.Bitwise.isSet(flags, osrs.CollisionFlag.SQ_BLOCKED)) then
      osrs.print("Blocks NPC")
      else
      osrs.print("Does not block NPCs")
      end
      end

      testFlag(4,0)