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

◆ PlayerCheckDropRequest()

bool PlayerCheckDropRequest ( notnull InventoryLocation src,
float radius )
protected

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

2582 {
2583 bool result = true;
2584
2585 EntityAI ent = src.GetParent();
2586 if ( ent )
2587 {
2588 PlayerBase player = PlayerBase.Cast(ent.GetHierarchyRootPlayer());
2589 if (player)
2590 {
2591 if ( GetDayZPlayerOwner() != player )
2592 {
2593 if (player.IsAlive())
2594 {
2595 if (!player.IsRestrained() && !player.IsUnconscious())
2596 {
2597 return false;
2598 }
2599 }
2600 }
2601 }
2602 }
2603
2604 if ( result )
2605 {
2606 result = CheckDropRequest( GetManOwner(), src, radius);
2607 }
2608
2609 return result;
2610 }
DayZPlayer GetDayZPlayerOwner()
Определения DayZPlayerInventory.c:168
Определения Building.c:6
Определения PlayerBaseClient.c:2

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

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