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

◆ CanReleaseAttachment()

override bool Weapon::CanReleaseAttachment ( EntityAI attachment)
inlineprotected

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

1171 {
1172 if ( !super.CanReleaseAttachment( attachment ) )
1173 return false;
1174 Magazine mag = Magazine.Cast(attachment);
1175 if (mag)
1176 {
1177 PlayerBase player = PlayerBase.Cast( GetHierarchyRootPlayer() );
1178 if ( player )
1179 {
1180 if ( player.GetItemInHands() == this )
1181 return true;
1182 }
1183 return false;
1184 }
1185
1186 return true;
1187 }