-
Автор темы
- #1
**Problem:** Score doesn't increase when eliminate a real player or bot in FFA game mode.
**Fix:**
```
**Fix:**
Fix in script bl_PlayerHealtManager.cs:
In bl_PlayerHealtManager.cs > AddKill(...) > change this line:
```csharp
if (elimatedTeam != Team.All && elimatedTeam != bl_PhotonNetwork.LocalPlayer.GetPlayerTeam())
[CODE lang="csharp" title="With:"]With:
```csharp
if (isOneTeamMode)
{
// add the score to the player total gained score in this match
bl_PhotonNetwork.LocalPlayer.PostScore(score);
}
else if (elimatedTeam != Team.All && elimatedTeam != bl_PhotonNetwork.LocalPlayer.GetPlayerTeam())
{
// add the score to the player total gained score in this match
bl_PhotonNetwork.LocalPlayer.PostScore(score);
}
```
In bl_AIShooterHealth.cs > Die(...) > change this line:
```csharp
if (shooterAgent.AITeam != Team.All && shooterAgent.AITeam != bl_MFPS.LocalPlayer.Team)
With:
With:
```csharp
if (isOneTeamMode) bl_PhotonNetwork.LocalPlayer.PostScore(score);
else if (shooterAgent.AITeam != Team.All && shooterAgent.AITeam != bl_MFPS.LocalPlayer.Team)
{
//Send to update score to player
bl_PhotonNetwork.LocalPlayer.PostScore(score);
}
Последнее редактирование: