DayZ
1.24
Loading...
Searching...
No Matches
Chainsaw.c
Go to the documentation of this file.
1
class
Chainsaw
extends
Switchable_Base
2
{
3
override
bool
CanPutInCargo
(
EntityAI
parent)
4
{
5
if
(!
super
.CanPutInCargo(parent))
return
false
;
6
if
(!GetCompEM().IsSwitchedOn())
7
return
true
;
8
return
false
;
9
}
10
11
override
void
SetActions
()
12
{
13
super
.SetActions();
14
AddAction
(
ActionSawPlanks
);
15
AddAction
(
ActionDestroyPart
);
16
}
17
}
AddAction
void AddAction(typename actionName)
Definition
AdvancedCommunication.c:212
ActionDestroyPart
Definition
ActionDestroyPart.c:10
ActionSawPlanks
Definition
ActionSawPlanks.c:36
EntityAI
Definition
Building.c:6
Param3
Definition
EntityAI.c:95
Switchable_Base
Definition
Chainsaw.c:2
Switchable_Base::SetActions
override void SetActions()
Definition
Chainsaw.c:11
Switchable_Base::CanPutInCargo
override bool CanPutInCargo(EntityAI parent)
Definition
Chainsaw.c:3
scripts
4_World
Entities
ItemBase
Switchable_Base
Chainsaw.c
Generated by
1.10.0