DayZ 1.24
Loading...
Searching...
No Matches
PetrolLighter.c
Go to the documentation of this file.
1class PetrolLighter extends ItemBase
2{
4 {
5 if (GetQuantity() > 0)
6 return true;
7 else
8 return false;
9 }
10
12 {
13 if (GetGame().IsServer())
14 AddQuantity(-0.5);
15 }
16
18 {
19 if (GetGame().IsServer())
20 AddQuantity(-0.5);
21 }
22
23 /*
24 override bool IsTargetIgnitionSuccessful( EntityAI item_target = NULL )
25 {
26 }
27 */
28
29 override void SetActions()
30 {
31 super.SetActions();
32
34 }
35}
ActionLightItemOnFireCB ActionContinuousBaseCB ActionLightItemOnFire()
void AddAction(typename actionName)
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
override void SetActions()
override void OnIgnitedTargetFailed(EntityAI target_item)
override bool CanIgniteItem(EntityAI ignite_target=NULL)
override void OnIgnitedTarget(EntityAI ignited_item)
proto native CGame GetGame()