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

◆ PlayerCheckDropRequest()

bool PlayerCheckDropRequest ( notnull InventoryLocation src,
float radius )
protected

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

4850 {
4851 bool result = true;
4852
4853 EntityAI ent = src.GetParent();
4854 if ( ent )
4855 {
4856 PlayerBase player = PlayerBase.Cast(ent.GetHierarchyRootPlayer());
4857 if (player)
4858 {
4859 if ( GetDayZPlayerOwner() != player )
4860 {
4861 if (player.IsAlive())
4862 {
4863 if (!player.IsRestrained() && !player.IsUnconscious())
4864 {
4865 return false;
4866 }
4867 }
4868 }
4869 }
4870 }
4871
4872 if ( result )
4873 {
4874 result = CheckDropRequest( GetManOwner(), src, radius);
4875 }
4876
4877 return result;
4878 }
DayZPlayer GetDayZPlayerOwner()
Определения DayZPlayerInventory.c:170
Определения PlayerBaseClient.c:2

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

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