DayZ Scripts
v1.21.156300 ยท Jun 20, 2023
 
Loading...
Searching...
No Matches
ActionMeasureTemperatureTarget.c
Go to the documentation of this file.
2{
3 override void CreateActionComponent()
4 {
6 }
7};
8
10{
12 {
14 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_SALINEBLOODBAGTARGET;
15 m_FullBody = true;
16 m_StanceMask = DayZPlayerConstants.STANCEMASK_ERECT | DayZPlayerConstants.STANCEMASK_CROUCH;
18 m_Text = "#measure_persons_temperature";
19 }
20
22 {
25 }
26
27 override void OnFinishProgressClient( ActionData action_data )
28 {
29 PlayerBase ntarget = PlayerBase.Cast( action_data.m_Target.GetObject() );
30 Thermometer thermometer = Thermometer.Cast(action_data.m_MainItem);
31
32 if (thermometer)
33 {
34 ntarget.SetLastUAMessage("" + thermometer.GetTemperatureValue(ntarget).ToString() + "#degrees_celsius");
35 }
36 }
37};
protected float m_SpecialtyWeight
Definition ActionBase.c:68
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56
protected string m_Text
Definition ActionBase.c:49
protected bool m_FullBody
Definition ActionBase.c:52
protected int m_StanceMask
Definition ActionBase.c:53
protected ActionData m_ActionData
ItemBase m_MainItem
Definition ActionBase.c:28
ref CABase m_ActionComponent
Definition ActionBase.c:30
ref ActionTarget m_Target
Definition ActionBase.c:32
override void OnFinishProgressClient(ActionData action_data)
Definition CCTMan.c:2
const float DEFAULT
const float MEASURE_TEMP
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:602