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

◆ PlayerCheckDropRequest()

bool PlayerCheckDropRequest ( notnull InventoryLocation src,
float radius )
protected

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

3020 {
3021 bool result = true;
3022
3023 EntityAI ent = src.GetParent();
3024 if ( ent )
3025 {
3026 PlayerBase player = PlayerBase.Cast(ent.GetHierarchyRootPlayer());
3027 if (player)
3028 {
3029 if ( GetDayZPlayerOwner() != player )
3030 {
3031 if (player.IsAlive())
3032 {
3033 if (!player.IsRestrained() && !player.IsUnconscious())
3034 {
3035 return false;
3036 }
3037 }
3038 }
3039 }
3040 }
3041
3042 if ( result )
3043 {
3044 result = CheckDropRequest( GetManOwner(), src, radius);
3045 }
3046
3047 return result;
3048 }
DayZPlayer GetDayZPlayerOwner()
Определения DayZPlayerInventory.c:167
Определения PlayerBaseClient.c:2

Перекрестные ссылки GetDayZPlayerOwner().

Используется в ValidateDestroy().