For the complete documentation index, see llms.txt. This page is also available as Markdown.

SU.Game.GetStartingPosition

SU Library: ab Version 0.7.0

SU.Game.GetStartingPosition(playerID)

Gibt die Start-Position zurück.

Achtung: funktioniert NICHT in "new_game"! ⇒ stattdessen "Events.FIRST_TICK_OF_NEW_GAME" o.ä. (siehe )

Parameter

  • playerID [1-8]: Spieler-ID, Index 0 ist ungültig!

Rückgabewert

  • x, y: Start-Position

  • 0,0 oder -1,-1: sonst / Fehler

Beispiel

local x, y = SU.Game.GetStartingPosition(3)    -- Start-Position von Spieler 3

Last updated