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

◆ OnSuccess()

override void ChainedDropAndRestrainLambda::OnSuccess ( EntityAI new_item)
inlineprivate

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

170 {
171 super.OnSuccess(new_item);
172
174 {
175 m_PairedExplosive.UnpairRemote();
176 ItemBase ib = ItemBase.Cast(new_item);
177 ib.PairWithDevice(m_PairedExplosive);
178 m_PairedExplosive.Arm();
179 }
180
181 // as soon as previous op is finish, start another one
182 EntityAI item_in_hands_source = m_SourcePlayer.GetHumanInventory().GetEntityInHands();
183 if (item_in_hands_source)
184 {
185 string new_item_name = MiscGameplayFunctions.ObtainRestrainItemTargetClassname(item_in_hands_source);
186 RestrainTargetPlayerLambda lambda = new RestrainTargetPlayerLambda(item_in_hands_source, new_item_name, m_Player);
187 if (m_SourcePlayer)
188 m_SourcePlayer.LocalReplaceItemInHandsWithNewElsewhere(lambda);
189 else
190 Error("ChainedDropAndRestrainLambda: missing source player!");
191 }
192 else
193 {
194 Error("ChainedDropAndRestrainLambda: missing source item in hands!");
195 }
196 }
class LogManager EntityAI
void RestrainTargetPlayerLambda(EntityAI old_item, string new_item_type, PlayerBase player)
Определения ActionRestrainTarget.c:212
class GP5GasMask extends MaskBase ItemBase
DayZPlayer m_Player
Определения Hand_Events.c:42
ExplosivesBase m_PairedExplosive
Определения ActionRestrainTarget.c:162
PlayerBase m_SourcePlayer
Определения ActionRestrainTarget.c:161
void Error(string err)
Messagebox with error message.
Определения EnDebug.c:90

Перекрестные ссылки Error(), m_PairedExplosive, m_Player, m_SourcePlayer и RestrainTargetPlayerLambda().