Page 1 of 1
Getting the teams designated to the players in the lobby
Posted: Mon Dec 28, 2015 8:12 am
by ephja
Player.PlayerReference.Team appears to be set to 0 for everyone. I've tested this in a game with me and a bot; each of whom is designated a separate team.
Posted: Mon Dec 28, 2015 10:33 am
by Sleipnir
PlayerReference.Team holds the default team that is set in the map.yaml. Use Client.Team if you want to query the final team as selected (or forced) in the lobby.
Posted: Mon Dec 28, 2015 11:05 am
by noobmapmaker
I could be wrong but for RA you have to add
Example from Fort Lonestar
Code: Select all
PlayerReference@Multi0:
Name: Multi0
Playable: True
AllowBots: False
LockTeam: True
Team: 1
LockFaction: True
Faction: allies
Allies: Multi1, Multi2, Multi3
Enemies: Soviets
Posted: Mon Dec 28, 2015 5:04 pm
by ephja
Ok so clients can refer to bots too. Thanks.