◆ ActionFillBrakes()
◆ ActionCondition()
31 {
33 return false;
34
35 if(
item.GetQuantity() <= 0 )
36 return false;
37
40 return false;
41
42 if(
car.GetFluidFraction(
CarFluid.BRAKE ) >= 0.98 )
43 return false;
44
46
49 {
52
54 {
56 {
57 return true;
58 }
59 }
60 }
61 return false;
62 }
CarFluid
Type of vehicle's fluid. (native, do not change or extend)
Definition Car.c:19
bool IsTransport(ActionTarget target)
Definition ActionBase.c:1049
Definition CivilianSedan.c:2
Definition EnConvert.c:106
static proto native float Distance(vector v1, vector v2)
Returns the distance between tips of two 3D vectors.
static proto float AbsFloat(float f)
Returns absolute value.
Перекрестные ссылки Math::AbsFloat(), vector::Distance() и ActionBase::IsTransport().
◆ CreateConditionComponents()
◆ OnEndAnimationLoopServer()
Объявления и описания членов класса находятся в файле:
- D:/Ishodniki/scripts/4_World/Classes/UserActionsComponent/Actions/Continuous/Vehicles/ActionFillBrakes.c