35 if( item.GetQuantity() <= 0 )
38 Car car = Car.Cast( target.GetObject() );
42 if( car.GetFluidFraction(
CarFluid.OIL ) >= 0.98 )
46 target.GetObject().GetActionComponentNameList(target.GetComponentIndex(), selections);
51 for (
int s = 0; s < selections.Count(); s++)
53 if ( selections[s] == carS.GetActionCompNameOil() )
55 float dist =
vector.
Distance( carS.GetRefillPointPosWS(), player.GetPosition() );
57 if ( dist < carS.GetActionDistanceOil() )
protected float m_SpecialtyWeight
protected bool m_LockTargetOnUse
ref CCIBase m_ConditionItem
protected bool IsTransport(ActionTarget target)
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()
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
override void OnEndAnimationLoopServer(ActionData action_data)
protected int m_CommandUID
protected m_CallbackClass
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++