Help with Spring.GetTeamResources ( number teamID, string "metal" | "energy" )

Help with Spring.GetTeamResources ( number teamID, string "metal" | "energy" )

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
User avatar
daryl
Posts: 196
Joined: 08 Oct 2006, 10:33

Help with Spring.GetTeamResources ( number teamID, string "metal" | "energy" )

Post by daryl »

Hello all,
Is this string :
Spring.GetTeamResources ( number teamID, string "metal" | "energy" )
Usable for team controlled by ai??
Because i try to use it. Ok if team id is controller by a player, but nil value return if team id is controller by ai.

How can i get resources status from a team controller by ai?
Post Reply

Return to “Lua Scripts”