yes... I tried, like
Code: Select all
[player1]
{
countrycode=Italy;
[...]
team=0;
avatar = xx; ---<<< custom parameters
othervariable = yy; ---<<< custom parameters
}
but nothing... also I tried using:
Code: Select all
[player1]
{
countrycode=Italy;
[..]
team0
}
[customPlayerKeys1] ---<<< custom parameters player 1
{
avatar=aa;
}
but nothing again, when I declare variable into the .lua script like this:
Code: Select all
--[[Spring.GetPlayerInfo ( number playerID )
return: nil | string "name", bool active, bool spectator, number teamID, number allyTeamID, number pingTime, number cpuUsage, string "country", number rank, table customPlayerKeys
]]--
_,_, _,_,_,_,_,_,_,avatar = Spring_GetPlayerInfo(myPlayerID)
the result of avatar is an empty table..