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

◆ Paint()

static void PaintItem::Paint ( ItemBase item_tool,
ItemBase item_target,
string base_name,
PlayerBase player,
float specialty_weight = 0 )
inlinestaticprivate

WIll open the 'item_target' by spawning a new entity and transferring item variables to the new one.

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

5 {
6 string spray_color = item_tool.ConfigGetString("color");
7 string item_color = item_target.ConfigGetString("color");
8
9 string new_class_name = base_name + "_" + spray_color;
10 PaintItem.SwitchItems(item_target, new_class_name, player);
11 }

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

Используется в RecipeBase::Do().