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

◆ Hit_Start()

void PluginDayzPlayerDebug_OtherCmds::Hit_Start ( )
inlineprivate

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

144 {
145 DayZPlayer player = DayZPlayer.Cast( GetGame().GetPlayer() );
146 if( !player )
147 return;
148
149 float hitDirection = m_DeathDirectionEdit.GetText().ToInt();
150 int hitType = m_HitTypeCB.GetCurrentItem();
151 if( hitType == 0 )
152 {
153 player.AddCommandModifier_Damage(0, hitDirection);
154 }
155 else
156 {
157 player.StartCommand_Damage(0, hitDirection);
158 }
159 }
PlayerBase GetPlayer()
Определения ModifierBase.c:51
proto native CGame GetGame()

Перекрестные ссылки GetGame(), GetPlayer(), m_DeathDirectionEdit и m_HitTypeCB.

Используется в CommandHandler().