From Mod Wiki
object team -- Team to return the state for. integer index -- Index of the objective to get the state for.
- If the index is out of range, or the object passed is not a team, the result will be -1.
Returns the state of the given objective, for the specified team.