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

◆ CanReceiveAttachment()

override bool Plastic_Explosive::CanReceiveAttachment ( EntityAI attachment,
int slotId )
inlineprotected

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

99 {
100 InventoryLocation il = new InventoryLocation();
101 GetInventory().GetCurrentInventoryLocation(il);
102 if (il.GetType() != InventoryLocationType.GROUND)
103 {
104 return false;
105 }
106
107 ClockBase timer = ClockBase.Cast(attachment);
108 if (timer && !timer.IsAlarmOn())
109 {
110 return false;
111 }
112
113 return !GetArmed();
114 }
void ClockBase()
Определения ClockBase.c:27
bool GetArmed()
Определения ExplosivesBase.c:266
InventoryLocationType
types of Inventory Location
Определения InventoryLocation.c:4
proto native int GetType()
returns type of InventoryLocation

Перекрестные ссылки ClockBase(), GetArmed() и InventoryLocation::GetType().