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

◆ GetViewIndex()

int Entity::GetViewIndex ( )
inlineprotected

Returns item preview index !!!! IF OVERRIDING with more dynamic events call GetOnViewIndexChanged() in constructor on client !!!!

См. определение в файле 3_Game/Entities/EntityAI.c строка 3687

3688 {
3689 if ( MemoryPointExists( "invView2" ) )
3690 {
3691 #ifdef PLATFORM_WINDOWS
3692 InventoryLocation il = new InventoryLocation();
3694 InventoryLocationType type = il.GetType();
3695 switch ( type )
3696 {
3697 case InventoryLocationType.CARGO:
3698 {
3699 return 0;
3700 }
3701 case InventoryLocationType.ATTACHMENT:
3702 {
3703 return 1;
3704 }
3705 case InventoryLocationType.HANDS:
3706 {
3707 return 0;
3708 }
3709 case InventoryLocationType.GROUND:
3710 {
3711 return 1;
3712 }
3713 case InventoryLocationType.PROXYCARGO:
3714 {
3715 return 0;
3716 }
3717 default:
3718 {
3719 return 0;
3720 }
3721 }
3722 #endif
3723
3724 #ifdef PLATFORM_CONSOLE
3725 return 1;
3726 #endif
3727 }
3728 return 0;
3729 }
InventoryLocationType
types of Inventory Location
Определения InventoryLocation.c:4
proto native GameInventory GetInventory()
proto native bool GetCurrentInventoryLocation(out notnull InventoryLocation loc)
returns information about current item location
proto native int GetType()
returns type of InventoryLocation

Перекрестные ссылки GetInventory() и InventoryLocation::GetType().