While trying to get a Gold Comb like his robot version, Sly was caught by the warthog guard, causing the glow in the pocket to disappear. It took him 2 tries to get the comb, and when he did, the warthog guard took his cane. Note: What I mentioned about Sly getting caught is NOT meant to break the law. Note 2: What I mentioned about the warthog guard taking his cane and Sly trying to get the comb is NOT meant to be theft. Note 3: While the robot was near the area with 3 guards (either frogs or rats or both or all rats), Sly himself was near his safehouse.
Credit to all.