DayZ 1.24
Loading...
Searching...
No Matches
Matchbox.c
Go to the documentation of this file.
1class Matchbox extends ItemBase
2{
3 override void InitItemVariables()
4 {
5 super.InitItemVariables();
7 }
8
10 {
12 return true;
13 else
14 return false;
15 }
16
18 {
19 if (GetGame().IsServer())
20 AddQuantity(-1);
21 }
22
24 {
25 if (GetGame().IsServer())
26 AddQuantity(-1);
27 }
28
29 override void SetActions()
30 {
31 super.SetActions();
32
34 }
35
36 /*
37 override bool IsTargetIgnitionSuccessful( EntityAI item_target = NULL )
38 {
39 }
40 */
41}
ActionLightItemOnFireCB ActionContinuousBaseCB ActionLightItemOnFire()
void AddAction(typename actionName)
@ Matchbox
bool AddQuantity(float value, bool destroy_config=true, bool destroy_forced=false)
add item quantity[related to varQuantity... config entry], destroy_config = true > if the quantity re...
Definition ItemBase.c:7900
override float GetQuantity()
Definition ItemBase.c:7995
bool can_this_be_combined
Definition ItemBase.c:4741
override float GetWet()
Definition ItemBase.c:8281
override void SetActions()
Definition Matchbox.c:29
override void InitItemVariables()
Definition Matchbox.c:3
override void OnIgnitedTargetFailed(EntityAI target_item)
Definition Matchbox.c:23
override bool CanIgniteItem(EntityAI ignite_target=NULL)
Definition Matchbox.c:9
override void OnIgnitedTarget(EntityAI ignited_item)
Definition Matchbox.c:17
proto native CGame GetGame()
const float STATE_DAMP
Definition constants.c:784