class ActionMeasureTemperatureTargetCB : ActionContinuousBaseCB { override void CreateActionComponent() { m_ActionData.m_ActionComponent = new CAContinuousTime(UATimeSpent.MEASURE_TEMP); } }; class ActionMeasureTemperatureTarget : ActionContinuousBase { void ActionMeasureTemperatureTarget() { m_CallbackClass = ActionMeasureTemperatureTargetCB; m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_SALINEBLOODBAGTARGET; m_FullBody = true; m_StanceMask = DayZPlayerConstants.STANCEMASK_ERECT | DayZPlayerConstants.STANCEMASK_CROUCH; m_SpecialtyWeight = UASoftSkillsWeight.PRECISE_LOW; m_Text = "#measure_persons_temperature"; } override void CreateConditionComponents() { m_ConditionItem = new CCINonRuined; m_ConditionTarget = new CCTMan(UAMaxDistances.DEFAULT); } override void OnFinishProgressClient( ActionData action_data ) { PlayerBase ntarget = PlayerBase.Cast( action_data.m_Target.GetObject() ); Thermometer thermometer = Thermometer.Cast(action_data.m_MainItem); if (thermometer) { ntarget.SetLastUAMessage("" + thermometer.GetTemperatureValue(ntarget).ToString() + "#degrees_celsius"); } } };