DayZ 1.30
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ EEOnCECreate()

override void Car::EEOnCECreate ( )
inlineprotected

См. определение в файле CarScript.c строка 2412

2413 {
2414
2415 float maxVolume = GetFluidCapacity( CarFluid.FUEL );
2416 float amount = Math.RandomFloat(0.0, maxVolume * 0.35 );
2417
2418 Fill( CarFluid.FUEL, amount );
2419 }
CarFluid
Type of vehicle's fluid. (native, do not change or extend)
Определения Car.c:18
proto native void Fill(MotorbikeFluid fluid, float amount)
Adds to the specified fluid the specified amount.
proto native float GetFluidCapacity(MotorbikeFluid fluid)

Перекрестные ссылки Fill(), GetFluidCapacity() и Math::RandomFloat().