Question: what to do when someone having panic attack?
Answer: Stay with the person and keep calm.
Offer medicine if the person usually takes it during an attack.
Don't make assumptions about what the person needs. Ask.
Speak to the person in short, simple sentences.
Be predictable. ... 
Help slow the person's breathing by breathing with him or her or by counting slowly to 10.