City17
4 years
Only call [jassdoc]ClearTextMessages[/jassdoc] for players who are part of toForce.
| 1670 | function ClearTextMessagesBJ takes force toForce returns nothing |
| 1671 | if (IsPlayerInForce(GetLocalPlayer(), toForce)) then |
| 1672 | // Use only local code (no net traffic) within this block to avoid desyncs.
|
| 1673 | call ClearTextMessages() |
| 1674 | endif
|
| 1675 | endfunction
|