Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
bark_colorbase.c
Go to the documentation of this file.
1class Bark_ColorBase extends ItemBase
2{
3 //================================================================
4 // IGNITION ACTION
5 //================================================================
6 override bool HasFlammableMaterial()
7 {
8 return true;
9 }
10
11 override bool CanBeIgnitedBy( EntityAI igniter = NULL )
12 {
13 if ( GetHierarchyParent() ) return false;
14
15 return true;
16 }
17
18 override bool CanIgniteItem( EntityAI ignite_target = NULL )
19 {
20 return false;
21 }
22
23 override void OnIgnitedTarget( EntityAI target_item )
24 {
25 }
26
27 override void OnIgnitedThis( EntityAI fire_source )
28 {
29 Fireplace.IgniteEntityAsFireplace( this, fire_source );
30 }
31
32 override bool IsThisIgnitionSuccessful( EntityAI item_source = NULL )
33 {
34 return Fireplace.CanIgniteEntityAsFireplace( this );
35 }
36
37 override void SetActions()
38 {
39 super.SetActions();
40
43 AddAction(ActionAttach);
45 }
46}
void ActionDetach()
void AddAction(typename actionName)
void SetActions()
override void OnIgnitedThis(EntityAI fire_source)
Executed on Server when some item ignited this one.
override bool HasFlammableMaterial()
bool CanBeIgnitedBy(EntityAI igniter=NULL)