DayZ 1.24
Loading...
Searching...
No Matches
Heatpack.c
Go to the documentation of this file.
2{
3 override bool CanHaveTemperature()
4 {
5 return true;
6 }
7
8 override void OnWorkStart()
9 {
10 if (GetGame().IsServer())
12 }
13
14 override void OnWork(float consumed_energy)
15 {
16 if (GetGame().IsServer())
18 }
19
20 override void OnWorkStop()
21 {
22 if (GetGame().IsServer())
23 SetHealth(0);
24 }
25
26 override void SetActions()
27 {
28 super.SetActions();
29
31 }
32};
void AddAction(typename actionName)
override void SetTemperature(float value, bool allow_client=false)
Definition ItemBase.c:8178
override void SetActions()
Definition Heatpack.c:26
override void OnWorkStop()
Definition Heatpack.c:20
override void OnWork(float consumed_energy)
Definition Heatpack.c:14
override void OnWorkStart()
Definition Heatpack.c:8
override bool CanHaveTemperature()
Definition Heatpack.c:3
proto native CGame GetGame()