aboutsummaryrefslogtreecommitdiff
path: root/webAO/client/sender/sendHP.ts
blob: bd4416378b898ecce5df6f3fad7ba227ab36ae23 (plain)
1
2
3
4
5
6
7
8
9
10
import { client } from "../../client";

/**
 * Sends health point command.
 * @param {number} side the position
 * @param {number} hp the health point
 */
export const sendHP = (side: number, hp: number) => {
  client.sender.sendServer(`HP#${side}#${hp}#%`);
};