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

◆ EEItemLocationChanged()

override void Weapon::EEItemLocationChanged ( notnull InventoryLocation oldLoc,
notnull InventoryLocation newLoc )
inlineprotected

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

1131 {
1132 super.EEItemLocationChanged(oldLoc, newLoc);
1133
1134 if (newLoc.GetType() == InventoryLocationType.HANDS)
1135 {
1136 PlayerBase player;
1137 if (newLoc.GetParent() && PlayerBase.CastTo(player, newLoc.GetParent()))
1138 {
1139 HumanCommandMove cm = player.GetCommand_Move();
1140 if (cm)
1141 {
1142 cm.SetMeleeBlock(false);
1143 }
1144 }
1145 }
1146 }
InventoryLocationType
types of Inventory Location
Определения InventoryLocation.c:4
proto native void SetMeleeBlock(bool pBlock)
this enables/disables block
void HumanCommandMove()
Определения human.c:514

Перекрестные ссылки HumanCommandMove::SetMeleeBlock().