IChatPositionShare.SharePosition method
Shares the local player’s current position to target as a real game position link (the server builds the link message; every client — this one included — receives it as a hypertext chat message with Kind = Position). textBefore is optional text shown before the link (rich tags except <sprite=N> are stripped).
Returns Ok once the request has left the client; the server’s verdict then arrives on SendResult (IsPositionShare = true), and on a refusal the game also shows its own tip. Refused when the map forbids sharing (see GetSharePosition); Unsupported for a target that can’t carry a share.
public ChatShareResult SharePosition(ChatTarget target, string? textBefore)| parameter | description |
|---|---|
| target | Say (the game’s “Current”), World, Party, Guild or Whisper. |
| textBefore | Text before the link, or null for none. |
See Also
Section titled “See Also”- struct ChatShareResult
- record ChatTarget
- interface IChatPositionShare
- namespace Stellar.Abstractions.Services