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

◆ DestroyPartServer()

override void Rebuilding::DestroyPartServer ( Man player,
string part_name,
int action_id,
bool destroyed_by_connected_part = false )
inlineprotected

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

49 {
50 //set DamageZone health to zero
51 string damage_zone;
52 if (DamageSystem.GetDamageZoneFromComponentName(m_EntityParent, part_name, damage_zone) && m_EntityParent.GetHealth(damage_zone, "Health") > 0)
53 {
54 m_EntityParent.SetHealth(damage_zone, "Health", 0);
55 }
56
57 super.DestroyPartServer(player,part_name,action_id,destroyed_by_connected_part);
58
59 ProcessOnPartDestroyedServer(player, part_name, action_id, destroyed_by_connected_part);
60 }
void ProcessOnPartDestroyedServer(Man player, string part_name, int action_id, bool destroyed_by_connected_part=false)
Определения ConstructionBase.c:419
EntityAI m_EntityParent
Определения ConstructionBase.c:45

Перекрестные ссылки m_EntityParent и ProcessOnPartDestroyedServer().