DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ IsServerCheck()

bool Entity::IsServerCheck ( bool allow_client)
inlineprotected

См. определение в файле EntityAI.c строка 2722

2723 {
2724 if (g_Game.IsServer())
2725 return true;
2726
2727 if (allow_client)
2728 return true;
2729
2730 if (GetGame().IsClient() && GetGame().IsMultiplayer())
2731 {
2732 Error("Attempting to change variable client side, variables are supposed to be changed on server only !!");
2733 return false;
2734 }
2735
2736 return true;
2737 }
DayZGame g_Game
Определения DayZGame.c:3868
proto native CGame GetGame()
void Error(string err)
Messagebox with error message.
Определения EnDebug.c:90

Перекрестные ссылки Error(), g_Game и GetGame().

Используется в SetTemperature(), SetTemperatureDirect() и SetTemperatureEx().