DayZ 1.30
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/DayZ/Entities/EntityAI.c строка 3769

3770 {
3771 if ( MemoryPointExists( "invView2" ) )
3772 {
3773 #ifdef PLATFORM_WINDOWS
3774 InventoryLocation il = new InventoryLocation();
3776 InventoryLocationType type = il.GetType();
3777 switch ( type )
3778 {
3779 case InventoryLocationType.CARGO:
3780 {
3781 return 0;
3782 }
3783 case InventoryLocationType.ATTACHMENT:
3784 {
3785 return 1;
3786 }
3787 case InventoryLocationType.HANDS:
3788 {
3789 return 0;
3790 }
3791 case InventoryLocationType.GROUND:
3792 {
3793 return 1;
3794 }
3795 case InventoryLocationType.PROXYCARGO:
3796 {
3797 return 0;
3798 }
3799 default:
3800 {
3801 return 0;
3802 }
3803 }
3804 #endif
3805
3806 #ifdef PLATFORM_CONSOLE
3807 return 1;
3808 #endif
3809 }
3810 return 0;
3811 }
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().