Ok, I see where your coming from, but I reckon it would go something more like this:
Ranged Attack: You shoot once as an attack action, then hide as a move action at -20, regardless of Hide in Plain Sight. You get only one attempt to hide in the round, because the sequence of attack followed by...