Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
PaintItem Class Reference

Static Private Member Functions

static bool CanPaintItem (ItemBase item_tool, ItemBase item_target)
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.
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 'suffix' to the classname of the old 'item'.

Detailed Description

Definition at line 1 of file paintitem.c.

Member Function Documentation

◆ CanPaintItem()

bool CanPaintItem ( ItemBase item_tool,
ItemBase item_target )
inlinestaticprivate

Definition at line 13 of file paintitem.c.

Referenced by RecipeBase::CanDo().

◆ Paint()

void 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.

Definition at line 4 of file paintitem.c.

References SwitchItems().

Referenced by RecipeBase::Do().

◆ SwitchItems()

void SwitchItems ( EntityAI old_item,
string new_item,
PlayerBase player )
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'.

Definition at line 29 of file paintitem.c.

Referenced by Paint().


The documentation for this class was generated from the following file: