widelands-dev team mailing list archive
-
widelands-dev team
-
Mailing list archive
-
Message #02389
Re: get a flag belonging to headquarters
On 18.07.2014, at 13:14, Tibor Bamhor <tiborb95@xxxxxxxxx> wrote:
> Hi,
>
> I need to get a flag (or its coordinates) belonging to a headquarters on the very beginning of game.
>
> How should I do it?
In Lua?
p1 = wl.Game().players[1]
hq = p1:get_buildings("headquarters")[1]
print(hq.flag)
> Is it a headquarter a member of productionsites and type WAREHOUSE?
not a productionsite, but a warehouse.
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
References