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

◆ EEItemLocationChanged()

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

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

1106 {
1107 super.EEItemLocationChanged(oldLoc, newLoc);
1108
1109 if (newLoc.GetType() == InventoryLocationType.HANDS)
1110 {
1111 PlayerBase player;
1112 if (newLoc.GetParent() && PlayerBase.CastTo(player, newLoc.GetParent()))
1113 {
1114 HumanCommandMove cm = player.GetCommand_Move();
1115 if (cm)
1116 {
1117 cm.SetMeleeBlock(false);
1118 }
1119 }
1120 }
1121 }
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().