DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
ItemBook.c
См. документацию.
1class ItemBook extends InventoryItemSuper
2{
3 override event bool OnUseFromInventory(Man owner)
4 {
5 return false;
6 }
7
8 //================================================================
9 // IGNITION ACTION
10 //================================================================
11 override bool HasFlammableMaterial()
12 {
13 return true;
14 }
15
16 override bool CanBeIgnitedBy( EntityAI igniter = NULL )
17 {
18 if ( GetHierarchyParent() ) return false;
19
20 return true;
21 }
22
23 override bool CanIgniteItem( EntityAI ignite_target = NULL )
24 {
25 return false;
26 }
27
28 override void OnIgnitedTarget( EntityAI target_item )
29 {
30 }
31
32 override void OnIgnitedThis( EntityAI fire_source )
33 {
34 Fireplace.IgniteEntityAsFireplace( this, fire_source );
35 }
36
37 override bool IsThisIgnitionSuccessful( EntityAI item_source = NULL )
38 {
39 return Fireplace.CanIgniteEntityAsFireplace( this );
40 }
41}
Определения Building.c:6
override void OnIgnitedThis(EntityAI fire_source)
Определения ItemBook.c:32
override bool CanIgniteItem(EntityAI ignite_target=NULL)
Определения ItemBook.c:23
override bool HasFlammableMaterial()
Определения ItemBook.c:11
override bool IsThisIgnitionSuccessful(EntityAI item_source=NULL)
Определения ItemBook.c:37
override void OnIgnitedTarget(EntityAI target_item)
Определения ItemBook.c:28
override bool CanBeIgnitedBy(EntityAI igniter=NULL)
Определения ItemBook.c:16
override event bool OnUseFromInventory(Man owner)
Определения ItemBook.c:3