43 if( item.GetQuantity() <= 0 )
49 Car car = Car.Cast( target.GetParent() );
53 if( car.GetFluidFraction(
CarFluid.COOLANT ) >= 0.95 )
57 target.GetObject().GetActionComponentNameList(target.GetComponentIndex(), selections);
66 if ( CastTo(carAI, car) )
69 if ( radiator && !radiator.IsRuined() )
71 for (
int s = 0; s < selections.Count(); s++)
73 if ( selections[s] == carS.GetActionCompNameCoolant() )
75 float dist =
vector.
Distance( carS.GetCoolantPtcPosWS(), player.GetPosition() );
77 if ( dist < carS.GetActionDistanceCoolant() )
protected float m_SpecialtyWeight
protected bool m_LockTargetOnUse
ref CCIBase m_ConditionItem
ref CCTBase m_ConditionTarget
protected bool m_FullBody
protected int m_StanceMask
class ActionTargets ActionTarget
CarFluid
Type of vehicle's fluid. (native, do not change or extend)
protected ActionData m_ActionData
ref CABase m_ActionComponent
private const float TIME_TO_REPEAT
override void CreateActionComponent()
override void CreateConditionComponents()
const string RADIATOR_SELECTION_NAME
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
override bool IsUsingProxies()
protected int m_CommandUID
protected m_CallbackClass
provides access to slot configuration
static proto native int GetSlotIdFromString(string slot_name)
converts string to slot_id
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
static proto native float Distance(vector v1, vector v2)
Returns the distance between tips of two 3D vectors.
DayZPlayerConstants
defined in C++
const int LIQUID_RIVERWATER