Method AreAllAgentsDead
AreAllAgentsDead(Team)
Check if all the agents on a team are dead
Declaration
bool AreAllAgentsDead(Team team)
Parameters
Type | Name | Description |
---|---|---|
Team | team | the team to check |
Returns
Type | Description |
---|---|
System.Boolean | true if all the agents on a team are dead, false if 1 or more are alive with health > 0 |
AreAllAgentsDead(RideID, Team)
Check if all the agents on a team are dead
Declaration
bool AreAllAgentsDead(RideID scenarioId, Team team)
Parameters
Type | Name | Description |
---|---|---|
RideID | scenarioId | |
Team | team | the team to check |
Returns
Type | Description |
---|---|
System.Boolean | true if all the agents on a team are dead, false if 1 or more are alive with health > 0 |