mp.actionsawait mp.actions.send(playerToken, actionType, requestData, { target?, targetIds? })
Issues a request/response action. target: 'all' | 'host' | 'others' | 'specific' (+targetIds for specific).
await mp.actions.poll(playerToken)
Polls actions addressed to the player — clients answer via complete().
await mp.actions.pending(playerToken)
Lists the player's own unanswered actions.
await mp.actions.complete(playerToken, actionId, status, responseData?)
Answers an action — status marks it accepted/declined/completed with optional response payload.
Actions are the room's request/response primitive — trades, votes, dialogs, ability prompts. Send issues a typed action at a target set: everyone, the host, everyone-but-you, or an explicit list of player ids. Each action carries a request payload and waits for an answer rather than firing and forgetting.
Recipients poll for actions addressed to them and answer with complete — a status marking it accepted, declined or completed, plus an optional response payload. Pending lists the sender's own still-unanswered actions, so a reconnecting client can rebuild its outstanding-request view.