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

◆ EEItemLocationChanged()

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

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

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

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