Dayz
1.11.153731
Dayz Code Explorer by Zeroy
Firewood.c
Go to the documentation of this file.
1
class
Firewood
extends
ItemBase
2
{
3
override
bool
CanPutInCargo
(
EntityAI
parent )
4
{
5
if
( super.CanPutInCargo(parent) || !(
this
.GetQuantity() > 5 ) )
6
{
7
return
true
;
8
}
9
return
false
;
10
}
11
12
override
void
SetActions
()
13
{
14
super.SetActions();
15
16
AddAction
(
ActionClapBearTrapWithThisItem
);
17
18
AddAction
(
ActionCreateIndoorFireplace
);
19
AddAction
(
ActionCreateIndoorOven
);
20
AddAction
(
ActionAttach
);
21
AddAction
(
ActionDetach
);
22
}
23
}
ItemBase
Definition:
InventoryItem.c:445
AddAction
void AddAction(typename actionName)
Definition:
AdvancedCommunication.c:86
ActionClapBearTrapWithThisItem
Definition:
ActionClapBearTrapWithThisItem.c:1
ItemBase::SetActions
override void SetActions()
Definition:
Firewood.c:12
ActionCreateIndoorFireplace
Definition:
ActionCreateIndoorFireplace.c:1
ActionAttach
ActionAttachWheels ActionAttach
ActionCreateIndoorOven
Definition:
ActionCreateIndoorOven.c:1
ActionDetach
void ActionDetach()
Definition:
ActionDetach.c:10
ItemBase::CanPutInCargo
override bool CanPutInCargo(EntityAI parent)
Definition:
Firewood.c:3
EntityAI
Base native class of all vehicles in game.
Definition:
Building.c:4
scripts
4_World
Entities
ItemBase
Firewood.c
Generated by
1.8.17