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

◆ SetHandsMaterial()

void SetHandsMaterial ( PlayerBase player,
int material_type )
protected

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

464 {
465 string player_class = player.GetPlayerClass();
466 int slot_id;
467 EntityAI eai;
468
469 if ( m_BloodyHands.Contains(player_class))
470 {
471 slot_id = InventorySlots.GetSlotIdFromString("Gloves");
472 eai = player.GetInventory().FindPlaceholderForSlot( slot_id );
473
474 if (eai)
475 {
476 eai.SetObjectMaterial( 0, m_BloodyHands.Get(player_class).GetMaterial(material_type) );
477 }
478 }
479 else
480 {
481 //Print("Error! Player class <" + player_class + "> does not contain valid configuration for bloody hands!");
482 }
483 }
ref map< string, ref BloodyHands > m_BloodyHands
Определения PluginLifespan.c:34
Определения Building.c:6
static proto native int GetSlotIdFromString(string slot_name)
converts string to slot_id
provides access to slot configuration
Определения InventorySlots.c:6

Перекрестные ссылки InventorySlots::GetSlotIdFromString() и m_BloodyHands.

Используется в SetBloodyHands() и SetBloodyHandsEx().