Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
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  {
8  return true;
9  }
10  return false;
11  }
12 
13  override void SetActions()
14  {
15  super.SetActions();
18  }
19 }
Switchable_Base
Definition: chainsaw.c:1
ActionSawPlanks
Definition: actionsawplanks.c:35
CanPutInCargo
override bool CanPutInCargo(EntityAI parent)
Definition: explosivesbase.c:247
AddAction
void AddAction(typename actionName)
Definition: advancedcommunication.c:86
SetActions
void SetActions()
Definition: advancedcommunication.c:79
ActionDestroyPart
Definition: actiondestroypart.c:9
EntityAI
Definition: building.c:5