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

◆ IsWearingBurlap()

bool IsWearingBurlap ( PlayerBase player)

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

81 {
82 EntityAI attachment;
83 Class.CastTo(attachment, player.GetInventory().FindAttachment(InventorySlots.HEADGEAR));
84 if ( attachment && attachment.IsInherited(BurlapSackCover) )
85 {
86 return true;
87 }
88 return false;
89 }
Super root of all classes in Enforce script.
Определения EnScript.c:11
Определения Building.c:6
provides access to slot configuration
Определения InventorySlots.c:6
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.

Перекрестные ссылки Class::CastTo().

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