> For the complete documentation index, see [llms.txt](https://docs.settlers-united.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.settlers-united.com/s4-lua-api-de/su-library-functions/su.game/su.game.pingteamofplayer.md).

# SU.Game.PingTeamOfPlayer

## SU.Game.PingTeamOfPlayer(x, y, playerID\[, arrowDuration=15\[, minimapDuration=arrowDuration\[, msg\[, icon=8\[, lifetime\_s=120\[, x2, y2]]]]]])

Erzeugt einen Ping **nur für das Team vom angegebenen Spieler** auf der Karte und Minimap und gibt optional eine Textnachricht aus, die standardmäßig den Bildschirm zu den Koordinaten `x, y` springen lässt.

Zusätzlich wird ein Sound abgespielt.

#### Parameter

* `playerID [1-8]`: Spieler-ID, **Index 0 ist ungültig!**
* `arrowDuration` (optional): Zeit in Spiel-Sekunden, wie lange der Pfeil auf der Karte angezeigt werden soll.
* `minimapDuration` (optional): Zeit in Spiel-Sekunden, wie lange die blinkende Animation auf der Minimap  angezeigt werden soll.
* `[msg, ...]` (optional): siehe [SU.Game.ShowTextMessage](/s4-lua-api-de/su-library-functions/su.game/su.game.showtextmessage.md)

## SU.Game.PingTeamOfPlayer(x, y, playerID\[, msg\[, icon=8\[, lifetime\_s=120\[, x2, y2]]]]]])

Gleiche Funktion wie oben, nur mit anderen optionalen Parametern (hier gilt: `arrowDuration=minimapDuration=15`).

#### Beispiel

```lua
SU.Game.PingTeamOfPlayer(100, 80, 3)    // Ping Team vom Spieler 3 an (100, 80) für je 15 Sekunden
SU.Game.PingTeamOfPlayer(100, 80, 1, 0)    // ... Team vom Spieler 1 ohne Pfeil, nur Animation auf der Minimap
SU.Game.PingTeamOfPlayer(100, 80, 2, "click me")    // ... Team vom Spieler 2 mit Textausgabe, Bildschirm springt zu den Koordinaten
SU.Game.PingTeamOfPlayer(100, 80, 8, 15, 0, "click me")    // ... Team vom Spieler 8 nur Pfeil und Nachricht
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.settlers-united.com/s4-lua-api-de/su-library-functions/su.game/su.game.pingteamofplayer.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
