DayZ Scripts
v1.21.156300 ยท Jun 20, 2023
 
Loading...
Searching...
No Matches
HandDrillKit.c
Go to the documentation of this file.
1class HandDrillKit extends ItemBase
2{
4 override bool CanIgniteItem( EntityAI ignite_target = NULL )
5 {
6 return true;
7 }
8
9 override void OnIgnitedTarget( EntityAI ignited_item )
10 {
11 if ( GetGame().IsServer() )
12 {
13 DecreaseHealth( 20 );
14 }
15 }
16
17 override void OnIgnitedTargetFailed( EntityAI target_item )
18 {
19 if ( GetGame().IsServer() )
20 {
21 DecreaseHealth( 20 );
22 }
23 }
24
25 override void SetActions()
26 {
27 super.SetActions();
28
30 }
31
32 /*
33 override bool IsTargetIgnitionSuccessful( EntityAI item_target = NULL )
34 {
35 }
36 */
37}
ActionLightItemOnFireCB ActionContinuousBaseCB ActionLightItemOnFire()
void AddAction(typename actionName)
override void OnIgnitedTargetFailed(EntityAI target_item)
override void OnIgnitedTarget(EntityAI ignited_item)
Definition HandDrillKit.c:9
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
override void SetActions()
proto native CGame GetGame()