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

◆ CanReleaseAttachment()

override bool Weapon::CanReleaseAttachment ( EntityAI attachment)
inlineprotected

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

1196 {
1197 if ( !super.CanReleaseAttachment( attachment ) )
1198 return false;
1199 Magazine mag = Magazine.Cast(attachment);
1200 if (mag)
1201 {
1202 PlayerBase player = PlayerBase.Cast( GetHierarchyRootPlayer() );
1203 if ( player )
1204 {
1205 if ( player.GetItemInHands() == this )
1206 return true;
1207 }
1208 return false;
1209 }
1210
1211 return true;
1212 }