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

◆ OnWasAttached()

override void PlateCarrierVest::OnWasAttached ( EntityAI parent,
int slot_id )
inlineprivate

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

4 {
5 super.OnWasAttached( parent, slot_id );
6
7 if ( g_Game.IsServer() && parent.IsInherited( DayZInfected ) )
8 {
9 float coef = Math.RandomFloatInclusive( 0.2, 0.4 );
10 SetHealth01( "", "", coef);
11 }
12 }
DayZGame g_Game
Определения DayZGame.c:3942

Перекрестные ссылки g_Game и Math::RandomFloatInclusive().