DayZ
1.24
Loading...
Searching...
No Matches
PetrolLighter.c
Go to the documentation of this file.
1
class
PetrolLighter
extends
ItemBase
2
{
3
override
bool
CanIgniteItem
(
EntityAI
ignite_target
=
NULL
)
4
{
5
if
(
GetQuantity
() > 0)
6
return
true
;
7
else
8
return
false
;
9
}
10
11
override
void
OnIgnitedTarget
(
EntityAI
ignited_item
)
12
{
13
if
(
GetGame
().IsServer())
14
AddQuantity
(-0.5);
15
}
16
17
override
void
OnIgnitedTargetFailed
(
EntityAI
target_item
)
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
33
AddAction
(
ActionLightItemOnFire
);
34
}
35
}
ActionLightItemOnFire
ActionLightItemOnFireCB ActionContinuousBaseCB ActionLightItemOnFire()
Definition
ActionLightItemOnFire.c:11
AddAction
void AddAction(typename actionName)
Definition
AdvancedCommunication.c:212
AddQuantity
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
GetQuantity
override float GetQuantity()
Definition
ItemBase.c:7995
EntityAI
Definition
Building.c:6
ItemBase
Definition
InventoryItem.c:697
ItemBase::SetActions
override void SetActions()
Definition
PetrolLighter.c:29
ItemBase::OnIgnitedTargetFailed
override void OnIgnitedTargetFailed(EntityAI target_item)
Definition
PetrolLighter.c:17
ItemBase::CanIgniteItem
override bool CanIgniteItem(EntityAI ignite_target=NULL)
Definition
PetrolLighter.c:3
ItemBase::OnIgnitedTarget
override void OnIgnitedTarget(EntityAI ignited_item)
Definition
PetrolLighter.c:11
Param3
Definition
EntityAI.c:95
GetGame
proto native CGame GetGame()
scripts
4_World
Entities
ItemBase
PetrolLighter.c
Generated by
1.10.0