DayZ 1.24
Loading...
Searching...
No Matches
PaintItem.c
Go to the documentation of this file.
2{
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;
11 }
12
14 {
15 string spray_color = item_tool.ConfigGetString("color");
16 string item_color = item_target.ConfigGetString("color");
17
19 return true;
20 else
21 return false;
22 }
23
29};
30
31
static void Paint(ItemBase item_tool, ItemBase item_target, string base_name, PlayerBase player, float specialty_weight=0)
WIll open the 'item_target' by spawning a new entity and transferring item variables to the new one.
Definition PaintItem.c:4
static bool CanPaintItem(ItemBase item_tool, ItemBase item_target)
Definition PaintItem.c:13
static void SwitchItems(EntityAI old_item, string new_item, PlayerBase player)
Will switch the 'item' for a new game entity, the new entity's classname will be formed by adding the...
Definition PaintItem.c:25
void PaintItemLambda(EntityAI old_item, string new_item_type, PlayerBase player)
Definition PaintItem.c:34