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

◆ CanReleaseAttachment()

override bool Weapon::CanReleaseAttachment ( EntityAI attachment)
inlineprotected

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

1190 {
1191 if ( !super.CanReleaseAttachment( attachment ) )
1192 return false;
1193 Magazine mag = Magazine.Cast(attachment);
1194 if (mag)
1195 {
1196 PlayerBase player = PlayerBase.Cast( GetHierarchyRootPlayer() );
1197 if ( player )
1198 {
1199 if ( player.GetItemInHands() == this )
1200 return true;
1201 }
1202 return false;
1203 }
1204
1205 return true;
1206 }