Dayz
Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Toggle main menu visibility
Loading...
Searching...
No Matches
handdrillkit.c
Go to the documentation of this file.
1
class
HandDrillKit
extends
ItemBase
2
{
4
override
bool
CanIgniteItem
(
EntityAI
ignite_target = NULL )
5
{
6
return
true
;
7
}
8
9
override
void
OnIgnitedTarget
(
EntityAI
target_item )
10
{
11
if
(
g_Game
.IsServer() )
12
{
13
DecreaseHealth( 20 );
14
}
15
}
16
17
override
void
OnIgnitedTargetFailed
(
EntityAI
target_item )
18
{
19
if
(
g_Game
.IsServer() )
20
{
21
DecreaseHealth( 20 );
22
}
23
}
24
25
override
void
SetActions
()
26
{
27
super.SetActions();
28
29
AddAction
(
ActionLightItemOnFire
);
30
}
31
32
/*
33
override bool IsTargetIgnitionSuccessful( EntityAI item_target = NULL )
34
{
35
}
36
*/
37
}
ActionLightItemOnFire
ActionLightItemOnFireCB ActionContinuousBaseCB ActionLightItemOnFire()
Definition
actionlightitemonfire.c:11
AddAction
void AddAction(typename actionName)
Definition
advancedcommunication.c:220
EntityAI
Definition
inventoryitem.c:2
ItemBase
Definition
inventoryitem.c:742
ItemBase::OnIgnitedTargetFailed
override void OnIgnitedTargetFailed(EntityAI target_item)
Definition
handdrillkit.c:17
ItemBase::CanIgniteItem
override bool CanIgniteItem(EntityAI ignite_target=NULL)
Override this method and and check if the given item can be ignited. It is not necesarry to check her...
Definition
handdrillkit.c:4
ItemBase::OnIgnitedTarget
override void OnIgnitedTarget(EntityAI target_item)
Definition
handdrillkit.c:9
ItemBase::SetActions
override void SetActions()
Definition
handdrillkit.c:25
g_Game
DayZGame g_Game
Definition
dayzgame.c:3942
Games
Dayz
scripts
4_world
entities
itembase
handdrillkit.c
Generated by
1.17.0