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

◆ SwitchItems()

static void OpenItem::SwitchItems ( EntityAI old_item,
PlayerBase player,
float spill_modificator,
float specialty_weight )
inlinestaticprivate

Will switch the 'item' for a new game entity, the new entity's classname will be formed by adding the 'suffix' to the classname of the old 'item'.

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

26 {
27 string old_name = old_item.GetType();
28 string new_name = old_name + "_Opened";
29 OpenAndSwitchLambda l = new OpenAndSwitchLambda(old_item, new_name, player, spill_modificator, specialty_weight);
30 l.SetTransferParams(true, true, true, true);
31 MiscGameplayFunctions.TurnItemIntoItemEx(player, l);
32 }

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