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

◆ PlayerCheckDropRequest()

bool PlayerCheckDropRequest ( notnull InventoryLocation src,
float radius )
protected

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

2592 {
2593 bool result = true;
2594
2595 EntityAI ent = src.GetParent();
2596 if ( ent )
2597 {
2598 PlayerBase player = PlayerBase.Cast(ent.GetHierarchyRootPlayer());
2599 if (player)
2600 {
2601 if ( GetDayZPlayerOwner() != player )
2602 {
2603 if (player.IsAlive())
2604 {
2605 if (!player.IsRestrained() && !player.IsUnconscious())
2606 {
2607 return false;
2608 }
2609 }
2610 }
2611 }
2612 }
2613
2614 if ( result )
2615 {
2616 result = CheckDropRequest( GetManOwner(), src, radius);
2617 }
2618
2619 return result;
2620 }
DayZPlayer GetDayZPlayerOwner()
Определения DayZPlayerInventory.c:168
Определения PlayerBaseClient.c:2

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

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